Sublime Forum

Fold_all/unfold_all in JS IIFEs

#1

fold_all/unfold_all in JS IIFEs

Code folding no longer works as it used to (about 6 months). I used to be able to fold all functions in an IIFE with [ctrl+e, ctrl+1].

The default (Linux).sublime keymap is still as it used to be and it still behaves differently.

{ "keys": ["ctrl+e", "ctrl+1"], "command": "fold_all" },
{ "keys": ["ctrl+e", "ctrl+2"], "command": "unfold_all" },

How could the problem be solved?

Or is there an add-on that allows this to be set via the mouse context?

ST-Version 3.2.2

0 Likes

#2

Or any Addon. I heard of one that folds the functions when loading the file. But I can’t think of the name.

0 Likes

#3

I’ve rediscovered fold_by_level… it folds well again.

It would be good if the state could be saved. Do you know of an add-on for this?

0 Likes