sublimetext2 - Sublime code folding of comments (as in Ace) -


in cloud9 (based on ace editor) can define arbitrary code folding regions within comments, example:

// descriptor { function() {      // code  } // } 

folds to:

// descriptor {<->} 

try here see mean.

is there existing way replicate in sublime?

from http://wesbos.com/sublime-text-code-folding/

to fold block, place cursor anywhere within block want fold. hit folding keys collapse block.

command + option + [ 

the thing have remember sublime text's folding mechanism dependent on code intention levels , not scope.


Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -