Tips and tricks - cpmcgrath/codealignment GitHub Wiki

Understand the Automatic block selection.

It’s a real time saver.

Make sure you get the shortcuts working.

Not having to use your mouse to perform an alignment is obviously faster.

Align by space

You’ll be surprised how many alignments you can replace with just Align by space.

Force align from caret on any shortcut

On any shortcut you can force it to use align from caret by adding Shift to the second shortcut key.

For example, to align by equals from caret – Ctrl Equals, Shift Equals.

Column marking

Column marking complements code alignment very well. In some cases you’ll want to remove some spaces from each line after an alignment. Column marking does this well.

Don't use tabs

It really doesn’t make sense to use tabs with code alignment. Consider just removing them.

And don’t try and find \t in your regexes, in order to perform alignments, part of the extension must find the regex with tabs replaced by spaces.

Embrace

Think about new ways to align your code.

Experiment!

If you’re experimenting with the options each screen you can reset if you stuff it up.

Contribute

Code alignment is open source. Feel free to make suggestions, fork the project, port it to a new IDE, or use the powerful code alignment backend in a way completely different from how it is currently used.