Home Download Buy Blog Forum Support

Textmate Indent Line command

Textmate Indent Line command

Postby mbond on Mon Feb 13, 2012 1:20 am

Is there a Sublime Text 2 command that is equivalent to the textmate command "Indent Line"

the indent line command moves the line to the proper indent level (forward or backwards)?

Still working on setting up a config file to move from Textmate to sublime text 2, which i moved to after 10+ years in emacs. Too much muscle memory to relearn.

Thanks.
mbond
 
Posts: 35
Joined: Thu Feb 03, 2011 3:49 pm

Re: Textmate Indent Line command

Postby mbond on Tue Mar 13, 2012 3:22 pm

I guess that's a "no" then.

very useful feature, especially when dealing with environments where people all use different space/tab settings. Highlight a section of code that you want to indent and hit a key-combo. done.
mbond
 
Posts: 35
Joined: Thu Feb 03, 2011 3:49 pm

Re: Textmate Indent Line command

Postby agibsonsw on Tue Mar 13, 2012 4:19 pm

mbond wrote:I guess that's a "no" then.

very useful feature, especially when dealing with environments where people all use different space/tab settings. Highlight a section of code that you want to indent and hit a key-combo. done.


I'm sure it's there somewhere, but not certain what you mean. On the Edit menu, Line, there's Indent (Ctrl-]), Unindent and Reindent. Selecting text and pressing Tab also indents.

Otherwise, search for the word 'indent' in 'Preferences\ Key Bindings - Default'.
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
agibsonsw
 
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Re: Textmate Indent Line command

Postby vitaLee on Tue Mar 13, 2012 5:52 pm

what he means is reindentation of selected lines based on the indentation of the line right before selection.
there's no such command included in Sublime but it should not be difficult to write custom one and bind it to keyboard shortcut.
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: Textmate Indent Line command

Postby jps on Tue Mar 13, 2012 10:20 pm

Reindent does this
jps
Site Admin
 
Posts: 3058
Joined: Wed Mar 19, 2008 12:33 pm

Re: Textmate Indent Line command

Postby mbond on Wed Mar 28, 2012 1:14 am

jps wrote:Reindent does this


great.

I think i'm running out of reasons to not purchase this software and replace text mate. I think i'll have to order it in the morning.
mbond
 
Posts: 35
Joined: Thu Feb 03, 2011 3:49 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 18 guests

cron