Sublime Forum

Expanding/Unexpanding problems

#1

When I expand something like this (javascript):
function something() { return 0; }
and unexpand (don’t know correct name), it goes to this:

function something() {... }

Is this a bug?

0 Likes

#2

you are talking about code folding. Code folding in ST is indentation based, so if the } is indented at the same level as the function declaration then it won’t get folded.

it’s not a bug, but something many people wish behaved differently.

0 Likes