3 ms·
Atom claims to have code folding, but (despite having syntax highlighting) the code folding function works naively off of indents, not syntax, so you're out of
by PhasmaFelis 9y ago
Atom claims to have code folding, but (despite having syntax highlighting) the code folding function works naively off of indents, not syntax, so you're out of luck working on any codebase with less-than-meticulous indentation, zero-indent comments, etc.
Unfortunately, IIRC, Sublime does exactly the same thing. It's really frustrating. I haven't been able to find a good all-purpose Mac programmer's editor with working code folding.
- cbcoutinho 9y agoAtom is currently in the process of working on implementing a new source folding parser [0] based on something called 'tree-sitter' [1]. If you are interested in following that development, feel free to watch that PR. [0] https://github.com/atom/atom/pull/16299 https://github.com/atom/atom/pull/16299 [1] https://github.com/tree-sitter/tree-sitter https://github.com/tree-sitter/tree-sitter
- PhasmaFelis 9y agoDone, thanks.
- sametmax 9y agoUnless you use Python and Saas. In which case indentation is always perfect.
- kccqzy 9y agoExcept for comments.