[quote=âqgatesâ]
Iâm guessing because Jon didnât get around to it yet.
Afaik, tmLanguage files (as used for source colouring etc.) contain language-specific rules for folding which are presently ignored by Sublime. Foldpoints from indentation is a bit of a cop-out, feels like a âquick and dirtyâ approach with plans to later improve with âproperâ folding. Itâs a good fallback solution in the absence of any other lexical awareness; but since tmLanguage files have such info to hand Iâm a bit disappointed that Jon hasnât seen fit to improve this for ST3, together with a facility for saving code folds within a project (or hot-exit) context.
The argument âsort your indenting outâ is also a cop-out. It doesnât help at all when youâre working on other peopleâs code or following in-house coding guidelines at your workplace, dealing quickly with files whose formatting has been compromised, etc etc⌠Ironically, working on othersâ large source files is when folding comes into its own. Folding as it stands is next to useless for me and just feels half-baked for now. Really hope to see this improve in the near future.[/quote]
Exactly my thoughts.
I expect ST3 will implement folding using tmLanguage rules.