Make a group of lines remain compressed when opening and closing the Sublime

3

I have a little problem with Sublime Text 2, it has an option on the left side where I can compress an entire DIV in only 2 lines

Is there any configuration I can do so that when I close the program and come back, it comes back with the same compressed DIVs I left on closing?

Taking advantage of the topic, every time I open the program it has already marked the option of Word Wrap, there is some way to configure for every time I open the program it opens with some options already edited, type a preset of settings ?

    
asked by anonymous 30.01.2014 / 13:49

2 answers

2

Pedro Reis has already replied that Sublime Text 2 does not store the compressed portions of text (this is called folding ) between sessions and that this can be done using plugins. Particularly I do not like to save the session of use and simply disable this feature. So, note that I do not use the plugins I'm going to suggest, okay? I know them "by name" (they were here in my bookmarks, for who knows someday to use in some need ...). If you can successfully use it, please tell us here (in a comment or in your own reply) for future reference. :)

The first plugin is called RegReplace . It is a tool for creating text matching rules (that is, it does a "search" and performs an "action" on the found text). With this tool you can, for example, create a content search between <div> and <\div> clauses and use an override action (see as in Project Readme) of type fold to compress the text block found. Plugins are initialized a few seconds after the editor, so it might be easy to run your rule automatically at the beginning (honestly, I'm not sure).

This one, called BufferScroll , seems more appropriate for what you want and simpler to use because it records different usage settings such as the text scroll position, bookmarks, and also foldings.

    

30.01.2014 / 20:16
0

Unfortunately in the standard version Sublime Text 2 does not record this, even because it would take up more memory space. Despite this there are plugins like autocomplete that can help. But I do not know which one to store it.

Since you are working with a project, it may be interesting to use some other IDE. Netbeans is a good choice, though it's a bit heavy.

I hope I have helped.

    
30.01.2014 / 14:53