Sublime Forum

Preserve collapsed divs / code pieces

#1

So it seems as though there were a lot of people upset about not being able to collapse divs or pieces of code in general - like functions etc.

I remember loving that about BBedit.

I notice that I can collapse them in sublime text 2. Am I searching the wrong word? What do you call it when you click the little arrow on the line number and then it neatly bundles up the larger block of code? Anyways…

Is there any way to preserve this state when saving etc? any info on the subject would be great. I have a page of html that is crazy huge and it’s just ridiculous. Normally I’m using php, so there isn’t all of this repeated code.

Thanks.

0 Likes

#2

That is commonly referred to as folding. Though it’s not built in, you can use BufferScroll to restore the folded view when you reopen the file.

0 Likes