In Sublime Text 2, how can I indent out to a straight column with multiple cursors on a ragged edge?

Posted by mtoast on Super User See other posts from Super User or by mtoast
Published on 2012-09-14T19:08:09Z Indexed on 2012/09/14 21:40 UTC
Read the original article Hit count: 193

Filed under:

Suppose I've got multiple cursors along several lines, like this:

foo|
barr|
foobar|
baz|

How can I automatically push the whitespace at the end of each line out to a flat edge, like this?:

foo    |
barr   |
foobar |
baz    |

(In these examples, | is supposed to be my cursor.)

EDIT #1

When you just Tab or Space from the initial arrangement, you get this:

# Useful, but not what I'm looking for
foo    |
barr    |
foobar    |
baz    |

That's useful, but not what I'm looking for. I'm looking for some kind of keyboard shortcut that will let me indent from a ragged multi-cursor insert out to a straight column.

© Super User or respective owner

Related posts about sublime-text-2