Sublime Forum

Question about code (method) folding in ST3

#1

Hi all!

so I have tried out ST2 and while I really like it and think I will jump ship soon, I have some remaining questions.

If I understand correctly “code folding” is a feature that is being improved for the next release.

My main concern with the exisiting functionality is that folding seems a bit limited, and seems to be based on intendation only. This leads to “hanging lines” when I fold a javascript function for example. So if I have this code:

[code]myFunc: function () {

// code here

}[/code]

and want to fold “myFunc”, I get this:

[code]myFunc: function () { (…)

}[/code]

So the last two lines aren’t getting folded. it would be much nicer (imho) if the folding would result in this:

myFunc: function () { (...) }

So that everything, including the closing bracket is folded into one line.

The question is how this would be handled in ST3? Does it work like above then?

TIA!

0 Likes