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 104148 - Add folding ability to code blocks (if, while, for)
Summary: Add folding ability to code blocks (if, while, for)
Status: RESOLVED DUPLICATE of bug 172617
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 3 votes (vote)
Assignee: Jan Lahoda
URL:
Keywords:
: 68190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-17 08:51 UTC by gborkowski
Modified: 2010-12-19 19:21 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gborkowski 2007-05-17 08:51:44 UTC
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).
Comment 1 jazzattcs 2009-03-20 04:08:01 UTC
*** Issue 68190 has been marked as a duplicate of this issue. ***
Comment 2 reisner 2009-09-10 10:02:47 UTC
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.

Comment 3 gborkowski 2009-09-10 10:17:55 UTC
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!
Comment 4 magner 2010-01-25 12:02:54 UTC
Please add this feature, it is very useful and is already in Eclipse and VS
Comment 5 johanp 2010-12-19 19:21:34 UTC

*** This bug has been marked as a duplicate of bug 172617 ***