Sublime Forum

How to only unfold open functions?

#1

Here’s an example. All functions are fully folded. I then open one to look around in it. I want to fold that function to level 3, and I use Ctrl + 3. However now, all my functions have unfolded to level 3, even the ones that were fully folded.

When I first started using Sublime a year or two ago, this behavior didn’t happen to me. Is there a way to revert it back such that only open functions are folded?

0 Likes

#2

No, there’s no way to revert old behavior.

Selections being folded/unfolded was a bug, according to sublimehq.

As of ST4143 “fold by level” always folds all statements in a file except those a caret is located within.

A region a caret is located within can however be folded via ctrl+shift+[.

1 Like

#3

Appreciate you letting me know what’s up. Thanks.

0 Likes