Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/virtuald/npp_tabs
A notepad++ plugin to make using spaces for indentation just as easy as using tabs!
https://github.com/virtuald/npp_tabs
notepad-plusplus-plugin
Last synced: about 1 month ago
JSON representation
A notepad++ plugin to make using spaces for indentation just as easy as using tabs!
- Host: GitHub
- URL: https://github.com/virtuald/npp_tabs
- Owner: virtuald
- Created: 2019-04-05T04:59:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-02T04:02:09.000Z (over 5 years ago)
- Last Synced: 2024-10-15T21:23:32.686Z (3 months ago)
- Topics: notepad-plusplus-plugin
- Language: C++
- Size: 86.9 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
npp_tabs: 'unindent on backspace key' plugin for Notepad++
==========================================================This is a simple hacked up Notepad++ plugin that enables 'unindent on
backspace'. I wrote it many many years ago... and even though I no
longer use Notepad++, I guess it still works?Installation
------------Download 'npp_tabs.dll' from the bin directory of this repository.
In modern versions of Notepad++, you can go to the "Settings"
menu, "Import", "Import Plugin(s)", and directly import the DLL
as a plugin. If that doesn't work, you can just copy it directly
to your Notepad++ plugins folder... which is usually at
C:\Program Files\Notepad++\pluginsThis plugin is known to work in versions of Notepad++ since 4.x.
Backstory
---------(Originally posted on my blog at http://www.virtualroadside.com/blog/index.php/2012/12/03/notepad-plugin-to-enable-unindent-on-backspace-key/)
When I first started using editors, I was a tabs person. I always set
the tab size to 4 since I liked the way that looked, and used tabs
instead of spaces. And it wasn't really a philosophical reason behind
it, it was very simple actually:_I *really* hate hitting backspace 4 times to unindent_
Seems simple enough. Yes, I know you can use SHIFT-BACKSPACE or other
voodoo to make it work, but I want to hit *one* key.Because of this, I always used 4-space tabs instead of inserting spaces
instead of tabs. However, at some point I started writing a project in
python, and python tends to encourage spaces vs tabs. Notepad++ is my
favorite editor, so I decided to write a plugin for Notepad++ to make
using spaces a lot less annoying -- and in particular, to make it so
that when I hit backspace, it would magically eat the spaces back to the
next indentation level.In the process of trying to do this, I discovered that the Scintilla
editing component actually has this functionality built-in -- you just
need to enable SCI_SETBACKSPACEUNINDENTS on the editor component. So I
took the sample plugin for Notepad++ and added two lines of code that
enabled this functionality, and it works great! Ever since then, I've
used spaces instead of tabs, since I really can't tell the difference --
and that's how I like it :)I actually wrote this thing a rather long time ago, and never got around
to actually cleaning it up and releasing it. I've decided to release it
in its present form, since it's so useful and very simple. It would be
even better if Notepad++ had an option to enable this, but this works
just as well until that happens.License
-------GPLv2+ license.