Home Download Buy Blog Forum Support

Question about code (method) folding in ST3

Question about code (method) folding in ST3

Postby frontend_dev on Fri Mar 22, 2013 6:44 pm

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: Select all
myFunc: function () {

   // code here

}


and want to fold "myFunc", I get this:

Code: Select all
myFunc: function () { (...)

}


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

Code: Select all
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!
frontend_dev
 
Posts: 5
Joined: Fri Mar 22, 2013 6:33 pm

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 24 guests