Code alignment

Code alignment for Notepad++ Change Log

Version 6


Version 5


Version 4

v4.1: Fixed bug which caused align by position not to work with shortcut.

v4: Shortcuts are now customisable. Used nicer font.

Version 3

v3.1: Align by equals wasn't working.

v3: Lots of changes - New align by string screen, Regex support, replaced "align by position" with "align from caret". Few more see

Version 2

v2.4: Changed align by equals really aligning by "space =" in c#. Now on EVERY language it aligns just by = but only when the character before it is not a symbol. This protects cases like += from being split but allows cases of "myvar= 5" to be aligned.

v2.3: Now feature for feature (except toolbar). In c# align by equals to align by "space =" (useful so it doesn't split up things like +=) and adds lines with just '(' & ')' to define scope.

v2.2: This could be a controversial change, so please let me know what you think. For a long time I have believed that automatic scope selection was kind of useless for XML style documents. Just because the layout is so different - You tend to use less blank lines, a child goes directly under a parent but is indented.
Because of this the logic has been changed for .xml, .xaml, .html & .html files. The selection logic can be described as
"If the marker is in a multiline tag, then the scope is that tag. If the marker is in a singleline tag, then the scope is the group until the indentation changes.

Version 1

Port of code alignment from Visual Studio version. Few features missing.