Sublime Forum

Why can't I collapse/fold code with only one nested line?

#1

When I want to collapse a line of nested code, the arrow for collapsing does not show unless the nested code is more than one line. I can’t find a way to collapse the code nested inside when there is only one line. Sometimes the line is very long, and with word wrap on, not being able to collapse it makes it hard to review code.

0 Likes

#2
1 Like

#3

if it helps, you can select the line and fold it manually (i.e. Edit menu -> Code Folding -> Fold), but there is no way to configure ST to show the fold marker for single further-indented lines. https://github.com/SublimeTextIssues/Core/issues/101#issuecomment-99524581

1 Like