Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Atom 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

[1] https://github.com/tree-sitter/tree-sitter


Done, thanks.


Unless you use Python and Saas. In which case indentation is always perfect.


Except for comments.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: