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.
Hi, It seems useful if we can fold in if/else statement in the code - e.g. when the statement is long, it would be good if we can see the if (...) while writing the 'else' section, which means keeping the code inside the if(){ * } folded up. The same applies to for/while loops, especially in the case of nested loops. Regards, Xiaofan
I think more universal is issue #121980 = for all {} brackets not only for loops and conditions
Yep, that's what I would have suggested if it does not pull down the editor's responsiveness.
And possibly for multi-line < > to fold in the hefty template definitions
Maybe would be better to have folding for all types brackets "(" "{" "<"? I see such possibilities in dreamweaver cs - for html code - it's great feature. I think for C/C++ it would be also good.
I think editor should provide an option if extra code folding is requested by user (issue 195925)
Hi Code folding has been added in PHP & is working in 7.2 dev (latest built) Like it is done in PHP, can we please add this to C++ module as well? Here is the discussion: http://netbeans.org/bugzilla/buglist.cgi?product=cnd;component=Code%20folding;resolution=---;list_id=16030 Here is code added for PHP: http://hg.netbeans.org/web-main/rev/5d54999ddb46 Regards, Mathew
Any news about this? This is the most irritating thing that bothers me with NetBeans so far. Can you -please- add this feature whenever possible? That would be greatly appreciated. Thanks! :)
This feature is still wanted
I have been using Netbeans for some time. I have recently started using it for c++. This feature would greatly improve my coding experience. Please do add it. Cheers
It is bored that this is still not implemented.
Another vote for implementing this enhancement. I use MPLAB X, which is Microchip's IDE for firmware development, built on NetBeans. Writing in embedded C, being able to fold code contained within pairs of {} would be hugely beneficial to my work.
Partial fix in 281790:f9460f574168 Added folding support for: * <keyword> ( condition ) { statement } ... where curly braces are optional and <keyword> is one of the: if switch while for * <keyword> { statement } ... where <keyword> is on of the: do else ... So: if (1) { printf("1"); } else if (2) { printf("2"); } else { printf("3"); } can be folded to if (1) {...3 lines} else if (2) {...3 lines} else {...3 lines} or if (1) {...3 lines} else if (2) { printf("2"); } else {...3 lines} etc. Same for all other conditional statements, iteration statements etc
Additional fixes in 281832:26ce02e6ed3e, 281850:ec2c3023dc0a
Integrated into 'main-silver', will be available in build *201412120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f9460f574168 User: Ilia Gromov <ilia@netbeans.org> Log: fixing Bug #142074 - Code Folding for C++ conditional/loop blocks
Additional fix in 282073:4008113928b8
Integrated into 'main-silver', will be available in build *201412170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4008113928b8 User: Ilia Gromov <ilia@netbeans.org> Log: additional fix for Bug #142074 - Code Folding for C++ conditional/loop blocks
*** Bug 209041 has been marked as a duplicate of this bug. ***
*** Bug 209784 has been marked as a duplicate of this bug. ***