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.
Implement code folding that will allow to fold/expand long (javadoc) comments. Other folding options such as methods or classes will follow.
I think this is a good feature to provide. It's becoming faily commonplace among popuar designers and IDEs (Visual Studio.NET and Allaire Homesite to name a few). Given the length of some Javadoc comments, and the amount of 'protected' code that Netbeans generates, it would be useful to be able to fold them, so that one can view user- defined code easier.
The code folding was dropped from the 3.4 features list. However it will be continued to be developed under lexer_based_editor_20020404 branch and once it becomes stable it will be available through autoupdate.
*** Issue 11190 has been marked as a duplicate of this issue. ***
*** Issue 18840 has been marked as a duplicate of this issue. ***
*** Issue 1942 has been marked as a duplicate of this issue. ***
Note: two votes on issue #11190.
One good point from mailing list (original message: http://www.netbeans.org/servlets/ReadMsg?msgId=343249&listName=nbdev ) - the fold/unfold should be possible using keyboard shortcut. For example, when the caret is inside a fold, Ctrl-Alt-Shift-F :-) should fold it.
I'd like to add pointers to my comments on this from 2 newsgroup posts: <http://www.netbeans.org/servlets/ReadMsg?msgId=306969&listName=nbdev> <http://www.netbeans.org/servlets/ReadMsg?msgId=309507&listName=nbui>
Set target milestone to TBD
The current status of the code folding: 1. Lexer module is ready but it's necessary to finish language embedding in order to migrate JSP language syntax coloring to lexer module. Time estimate is 2-4 weeks to finish language embedding in the lexer. 2. I'm currently working on migration of editor painting system to views (issue 21564). There will be an AsyncBoxView-like view implementation for line views having token views as children. Time estimate is 1-2 months to finish the painting system changes. 3. There will be a filtering viewfactory for the code folding. Time estimate is 2-4 weeks to implement the factory.
Also see issue #4461, issue #17062 which may be considered duplicates.
*** Issue 17062 has been marked as a duplicate of this issue. ***
*** Issue 4461 has been marked as a duplicate of this issue. ***
I have added dependency to more detailed tasks. The Code Folding UI spec is available at http://ui.netbeans.org/docs/ui/code_folding/cf_uispec.html
*** Issue 3350 has been marked as a duplicate of this issue. ***
We continue to develop the code folding under the code_folding branch. We would like to merge into trunk once the feature becomes stable. We plan that the merge could be done around Dec 9.
I assume this can be marked FIXED with milestone 3.6? Surely some bugs remain, but the feature is there.
Marking as fixed. The feature is present in trunk.