I use Sublime Text 3 Plug-in called AlignTab to align my code like this:
Version : 1.4.1
Author : Ken Wheeler
Website : http://kenwheeler.github.io
Docs : http://kenwheeler.github.io/slick
Repo : http://github.com/kenwheeler/slick
Issues : http://github.com/kenwheeler/slick/issues
Now, I want to my texts to stay next to the colon like this:
Version: 1.4.1
Author: Ken Wheeler
Website: http://kenwheeler.github.io
Docs: http://kenwheeler.github.io/slick
Repo: http://github.com/kenwheeler/slick
Issues: http://github.com/kenwheeler/slick/issues
How do I accomplish that ?
You can do this with AlignTab, no need for a different plugin. You just need to use the more advanced regex functionality as described on the GitHub page.
Bring up the Command Palette
(Ctrl+Shift+P on Windows or cmd+shift+P on Mac), type in "AlignTab", press enter, and type this in and hit enter:
:/r0clf1
Props to @Hank for including 0 spaces option, didn't even realize he didn't want the space.
Explanation:
:
finds the colon/
says okay now here come some arguments about what I want you to do with the colonr
means right-justify the first column0
means 0 spaces after the right columnc
means center the middle column (which is just the colon, so it doesn't do anything)l
means left-justify the right columnf1
means only do this for the first match on the line