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 228413 - "Code folding -> Collapse by default -> Tags and Other code blocks" has no effect on Java code
Summary: "Code folding -> Collapse by default -> Tags and Other code blocks" has no ef...
Status: RESOLVED DUPLICATE of bug 222493
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-09 15:36 UTC by jbehre1973
Modified: 2013-04-12 06:38 UTC (History)
0 users

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 jbehre1973 2013-04-09 15:36:46 UTC
If I switch on
"Code folding -> Collapse by default -> Tags and Other code blocks",
it has no effect on any of my Java code.
What code blocks are supposed to be affected by this option?

It is confusing that Netbeans 7.3 in Java code still does not support code folding for for loops, while loops, try blocks, if statements etc.

There is already code folding for methods and classes. And the abovementioned code blocks are precisely detected and indicated by highlighting the corresponding brackets and by a blue line at the border.

So why is there no possibility to collapse them just by clicking on a minus sign
as it is already possible for methods and classes?

It would make Java code containing, for instance, large loops much more readable.
Comment 1 Jiri Prox 2013-04-12 06:38:21 UTC

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