+38
L0u1s 5 years ago • updated by Adrian Forte 6 months ago 5
You are now able to fold functions when there's more then 1 line of code.
It would be nice to also fold on-lined functions
+5

agreed. code folding: good. not being able to fold 1 line functions or xml nodes with 1 child: not so good

-6

You can use the Ctrl+k, Ctrl+<n> (<n> being a number) to fold the whole code until level n (0 to unfold).


As an alternative, that is.

+1

I completely agree. I was able to find the comment folding package but nothing that would allow me to properly fold by levels regardless of number of lines..

-1

Bump. Very frustrating indeed.

You can fold functions in any language that uses some kind of single-character container for a function. For example the {} in JavaScript, BUT to do this, you need to tab out the closing container character: