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

Summary: "Code folding -> Collapse by default -> Tags and Other code blocks" has no effect on Java code
Product: java Reporter: jbehre1973
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:

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 ***