This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For a long time, NetBeans editor allows to fold only methods and JavaDocs. It would be useful to have ability to collapse if/while/for blocks (useful especially when they are very long).
*** Issue 68190 has been marked as a duplicate of this issue. ***
Yes, we need this feature too with Java / PHP (if/while/for/foreach/elseif/else if/else...)... if it is possible, the ability to change change / add code-folding for keywords by user (maybe at config file?) would be great.
For me, it is especially missing in JavaScript editor now. I prefer to use NetBeans over other editors (like Eclipse) for Javascript, because NB has really greate code completion tools for Javascript. However when you use ExtJS framework, the code has tendency to contain more and more nested configuration object literals, inlined functions etc. Lack of ability of collapsing such declarations is a pain. This is really really really needed!
Please add this feature, it is very useful and is already in Eclipse and VS
*** This bug has been marked as a duplicate of bug 172617 ***