[quote=“tungwaiyip”]Is there anyway to get the selection aligned on a column after the end of line like this?
apple |
orange |
pear |
[/quote]
I don’t have a general solution for you, but in this case with a suitable tab stop setting (I use 4) you can just multi-select, press Tab and then your text and you’ll get the alignment you want. Or if you are prepared count keystrokes: multi-select, add enough spaces so that the cursor for the shortest word is positioned after the end of the longest word, press Home to align all the cursors then navigate right to position the now-aligned cursors after the end of the longest word but before any ‘=’ character, then shift select the space between the cursors and the ‘=’ character and delete.
If this is just a one-off, sometimes it’s easier to automate to something that is almost correct and manually fix up a few errors than to either do the whole thing manually or spend time programming to get the automation perfect. Of course, if this is something you are going to do a lot, you will need something more sophisticated. But with a heavily programmable editor, sometimes we forget that low-tech solutions can sometimes still be useful.