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
Please sign in to leave a comment.
Hi there,
... 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)