Auto-indent: an experiment in a plugin
-
The oddities and annoyances of auto-indent have been brought up before:
- Odd (?) caret placement with auto-indent
- Auto-Indent - Basic not always works as expected
- Issues #11750, #15843, #15845.
In hopes of making some progress on this, I’ve created a plugin, with the intention that it can serve as a testing ground / proof-of-concept for how auto-indent could be improved:
Controlled Auto-indent implements a more customizable version of the Auto-indent feature built into Notepad++. I’ve created it to enable some discussion and evaluation of possibly useful extensions to Notepad++ itself, which hopefully will eventually render this plugin obsolete.
Controlled Auto-indent will do nothing unless you check the Enable item on its menu. This assures that you can get it out of the way quickly if it is causing problems or if you want to use only built-in Notepad++ functionality.
Before enabling this plugin, please make sure the Notepad++ setting at Settings | Preferences… | Indentation : Auto-indent is set to None.
Controlled Auto-indent does not apply indentation to multiple or rectangular selections. This differs from the Auto-indent built into Notepad++, which computes indentation based on the primary selection or the row selected last and applies that to all selections or rows.
The Settings… dialog offers various options to control automatic indentation. These are explained in the help file.