Sublime Forum

Multi-line comments, how to save them and restore?

#1

ST2 allows to hide a block of code under a comment, it is done with “Ctrl+Shift+”.
But the state cannot be saved. When I open my code again blocks of code I hid under the comment previously are all opened.

How to configure ST2 not to un-comment commented code on each file open event?

0 Likes

#2

I think BufferScroll will save fold positions (among other things). It may be worth a look.

0 Likes

#3

That’s what I was looking for. Works just fine. Thank you.

0 Likes