editorsublimetext3folding

How do you fold code by indentation in sublime 3?


In atom, the below is what you use to fold code by indent levels, but how do you do this in sublime?

Ctrl+k, then Ctrl+1 ... 9 Fold all code at indent level 1 ..


Solution

  • Same: Ctrl + K, Ctrl + 1 to fold all code on indent 1.

    To unfold all Ctrl + K, Ctrl + J.

    Same procedure all the way to indent 9 (Ctrl + K, Ctrl + <number>). You can also fold by clicking on the side line number arrow:

    enter image description here