-
Notifications
You must be signed in to change notification settings - Fork 54
Customise shortcuts
Custom shortcuts were introduced in Version 4.0.
Code alignment ships with existing shortcuts, but you can also add your own.
From the Align by String screen press the Options button. On the left hand side select Shortcuts.
The shortcuts screen should appear.

The key after Ctrl Equals to press for the alignment
What to align by. You can make it as simple as a single character or make it into a powerful regex.
Whether to align from the column where your caret is. For more details see _____
Should be ticked if your alignment is a regex. For details on using regexes see Aligning using Regular expressions
Allows you to say “If there’s not a space before this alignment, add one”.
e.g. If the furthest right was x= 7 and you aligned by equals, the add space makes sure that becomes x = 7.
Restores only this screen of options (and will not save the restore until you click OK)