Bug 142074 - Code Folding for C++ conditional/loop blocks
Code Folding for C++ conditional/loop blocks
Status: NEW
Product: cnd
Classification: Unclassified
Component: Editor
All All
: P3 with 7 votes (vote)
: 7.2
Assigned To: issues@cnd
Depends on: 195925
  Show dependency treegraph
Reported: 2008-07-29 14:31 UTC by i386
Modified: 2014-04-23 07:09 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description i386 2008-07-29 14:31:10 UTC

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.

Comment 1 avp 2008-07-29 15:11:03 UTC
I think more universal is issue #121980 = for all {} brackets not only for loops and conditions
Comment 2 i386 2008-07-29 15:35:34 UTC
Yep, that's what I would have suggested if it does not pull down the editor's responsiveness.
Comment 3 i386 2008-07-29 15:37:42 UTC
And possibly for multi-line < > to fold in the hefty template definitions
Comment 4 avp 2008-07-29 16:12:01 UTC
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.
Comment 5 Vladimir Voskresensky 2011-08-04 22:09:27 UTC
I think editor should provide an option if extra code folding is requested by user (issue 195925)
Comment 6 mathewfer 2012-02-29 02:37:21 UTC

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:


Here is code added for PHP:



Comment 7 XO39 2012-05-22 22:28:39 UTC
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! :)
Comment 8 MiDNiT3 2014-01-10 08:22:36 UTC
This feature is still wanted
Comment 9 rpears89 2014-02-27 11:43:19 UTC
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.

Comment 10 laijiang 2014-04-23 07:09:50 UTC
It is bored that this is still not implemented.

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo