Comment to auto fold a region of code?

is there a way I can comment a block of code so that by default it will be collapsed when the file is opened in the IDE?


something like

function main()
{
   ...
}

//collapse
function working()
{
  ...
}

I'd want the IDE to open with the "working" function in a collapsed state.

Is this possible?

- Jack

1 comment
Comment actions Permalink

Hi there,

//<editor-fold defaultstate="collapsed" desc="My folder block description">

... your code goes here ...

//</editor-fold>

The key here is defaultstate="collapsed"  part.

Other than that -- check default  folding rules that will be applied on file open (will affect all files/all regions)

1

Please sign in to leave a comment.