by PhasmaFelis · 10y ago · 0 comments
if (something) {
some code
//commented-out code
more code
}
It folds everything from the opening bracket to the comment, then stops.Both editors have had issues filed over this bug for years, which have been ignored. (https://github.com/atom/atom/issues/3442, https://github.com/SublimeTextIssues/Core/issues/101)
I eventually decided to go with Atom; it's open-source, so I can at least aspire to fix the damn thing myself when I get annoyed enough.
And I understand there are other reasons to not indent. In some languages, it's conventional to have certain kinds of declarations come at the beginning of a line, even if they're inside a block. (I think C++ does this, but I haven't used it since college--anyone want to comment?)
But yeah, generally it helps me get a high-level overview of the code without getting lost in the details.
Or even just to go into "zen mode" to feel that I can focus in on one method while the other ones are "gone".
So like: (( ) ) Folds into ((.. )
And it's just wrong.