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.

Bug 21425 - Implement code folding
Summary: Implement code folding
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker with 15 votes (vote)
Assignee: issues@editor
: 1942 3350 4461 11190 17062 18840 (view as bug list)
Depends on: 36753 36755 36756 36763 36764 36765
  Show dependency tree
Reported: 2002-03-11 15:17 UTC by Miloslav Metelka
Modified: 2007-11-05 13:44 UTC (History)
7 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2002-03-11 15:17:01 UTC
Implement code folding that will allow to fold/expand long (javadoc) comments.
Other folding options such as methods or classes will follow.
Comment 1 Reuben Cleetus 2002-05-06 20:49:42 UTC
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.

Comment 2 Miloslav Metelka 2002-05-15 15:38:39 UTC
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.
Comment 3 Jesse Glick 2002-07-08 18:07:22 UTC
*** Issue 11190 has been marked as a duplicate of this issue. ***
Comment 4 Jesse Glick 2002-07-08 18:07:43 UTC
*** Issue 18840 has been marked as a duplicate of this issue. ***
Comment 5 Jesse Glick 2002-07-08 18:08:22 UTC
*** Issue 1942 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2002-07-08 18:10:38 UTC
Note: two votes on issue #11190.
Comment 7 Jan Lahoda 2002-07-10 08:33:05 UTC
One good point from mailing list (original message: )
- 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.
Comment 8 Rochelle Raccah 2002-07-16 02:06:40 UTC
I'd like to add pointers to my comments on this from 2 newsgroup 
Comment 9 Marek Grummich 2002-07-22 09:54:06 UTC
Set target milestone to TBD
Comment 10 Marek Grummich 2002-07-22 09:57:50 UTC
Set target milestone to TBD
Comment 11 Miloslav Metelka 2003-07-21 12:48:54 UTC
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
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.
Comment 12 Jesse Glick 2003-07-21 18:27:02 UTC
Also see issue #4461, issue #17062 which may be considered duplicates.
Comment 13 Miloslav Metelka 2003-07-25 13:48:46 UTC
*** Issue 17062 has been marked as a duplicate of this issue. ***
Comment 14 Miloslav Metelka 2003-07-25 13:49:33 UTC
*** Issue 4461 has been marked as a duplicate of this issue. ***
Comment 15 Miloslav Metelka 2003-10-22 16:11:20 UTC
I have added dependency to more detailed tasks.
The Code Folding UI spec is available at
Comment 16 Miloslav Metelka 2003-10-30 09:13:36 UTC
*** Issue 3350 has been marked as a duplicate of this issue. ***
Comment 17 Miloslav Metelka 2003-10-30 09:15:55 UTC
*** Issue 3350 has been marked as a duplicate of this issue. ***
Comment 18 Miloslav Metelka 2003-11-24 12:43:17 UTC
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.
Comment 19 Jesse Glick 2004-01-22 20:12:14 UTC
I assume this can be marked FIXED with milestone 3.6? Surely some bugs
remain, but the feature is there.
Comment 20 Miloslav Metelka 2004-01-23 09:33:11 UTC
Marking as fixed. The feature is present in trunk.