Home Download Buy Blog Forum Support

code folding shortcut

code folding shortcut

Postby masterkain on Sat Feb 04, 2012 9:12 am

I'm on OSX Lion, trying to make code folding work through CMD + 1, 2, 3, etc. like in the Edit -> Code Folding menu.

CMD + K removes stuff, while CMD + 1 cycles through the open tabs.
I'm editing Ruby files.

Am I missing something?
masterkain
 
Posts: 6
Joined: Wed Jan 25, 2012 6:25 pm

Re: code folding shortcut

Postby C0D312 on Sat Feb 04, 2012 1:11 pm

This always seems to confuse new users. "CMD K, CMD 1" is called a "sequence." To fold the text, you have to press "command+k," then without removing your finger from "command," press 1,2,3,etc. If you don't remove your finger from command after pressing k, nothing will be removed, and your tabs wont be cycled.

Sequences allow Sublime Text to add a lot more keybindings than other applications, making it a very powerful tool, but it is a bit confusing when you're new to the concept.

Hope that helps.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: code folding shortcut

Postby masterkain on Sun Feb 05, 2012 7:30 am

Awesome, thanks :mrgreen:
masterkain
 
Posts: 6
Joined: Wed Jan 25, 2012 6:25 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 35 guests