When I close sublime text and reopen it, the folds disappear and code is fully spread. How can I make it so that it remembers what I folded and what not?
There's no way to do this by default. There are some plugins that remember the folded states of things, but sadly there's no way to maintain the nested folds or change the default folding behavior. It sucks, but the only thing you can really do to fix this is to build a plugin yourself or pay someone to write a plugin.
1
u/cflexer Oct 17 '26
No one?
1
u/Emanator144 Oct 17 '26
You need to install AutoFoldCode plugin
1
u/anto77_butt_kinkier 12d ago
There's no way to do this by default. There are some plugins that remember the folded states of things, but sadly there's no way to maintain the nested folds or change the default folding behavior. It sucks, but the only thing you can really do to fix this is to build a plugin yourself or pay someone to write a plugin.