Sublime Forum

Indent Level Code Folding on Comments

#1

How do I enable indent-level code folding instead of block level folding?

I use indent level code folding to organize JSON files with long lists of object properties by category so I can easily navigate by folding to the comment level of the category. This used to work back in Sublime 3, but no longer works (as of build 4200).

0 Likes

#2

ST4 supports both folding by indentation and by scope selectors.

JSON is configured to use the latter only, by default.

This behavior can be changed by (syntax specific) preferences:

"fold_style": "force_indentation",
0 Likes