Hacker News new | ask | show | jobs
by karmakaze 1643 days ago
I wasn't aware that this is an issue. It seems to me that the existing feature is 'text-based' folding rather than 'code-based'. I wouldn't notice as indentation very closely follows the code block structure in most of the code-bases I edit.

It could be useful to open a feature request for 'code-based' folding, if the existing 'text-based' one is considered to be working as intended. That way we're not fighting over a definition but rather showing demand for a new capability that everyone would agree is absent.

1 comments

For info, I was talking about this one:

https://github.com/sublimehq/sublime_text/issues/101

Editors like visual studio IDE properly fold code so that it results in a compact layout once it's folded. I would guess indentation-based folding could be made more compact and not take unnecessary lines.

As you can see I'm already assigned to that issue, so we've got something in the works.