Sublime Forum

Code folding shortcut

#1

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?

0 Likes

#2

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.

0 Likes

#3

Awesome, thanks :mrgreen:

0 Likes