Sublime Forum

TextMate-style "Indent Selection"?

#1

Hi there!

I bought ST2 for my Mac last night after playing around with it for half an hour, and I love it so far. However, I do miss TextMate’s “Indent Selection” ( Cmd-Opt- ) which could take a selection like this:

[code]

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

[/code]

and smart-indent it to

[code]


Lorem ipsum



Lorem ipsum dolor sit amet, consectetur adipisicing elit.

[/code]

Is there a similar functionality in ST2? I tried the “Paste and Indent” command ( Cmd-Shift-V ) with some unindented code in my pasteboard, but it didn’t “auto-indent” like I was expecting.

0 Likes

#2
0 Likes

#3

Thanks Tito! That’ll work just fine.

0 Likes