Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Custom region code folding(exist or will implement in CDT 8 ?)
Custom region code folding [message #642146] Tue, 30 November 2010 06:01 Go to next message
codetale  is currently offline codetale Friend
Messages: 6
Registered: July 2010
Junior Member
I know this feature are ask for many times, but somehow my "Search" button not working (using Google Chrome 7), my apologize for duplicated thread.

I have try the CDT 8 in CVS, it fixed a lot code assist and formatting issue, but I still yet no see the custom folding like
// <editor-fold>
region folding in Netbeans
// </editor-fold>

#pragma region
region folding in Visual Studio C++
#pragma endregion


I like to know is the Custom region code folding will implement in future release of CDT 8 or not?

Or is there any plugin provide this option?

Thank you very much
Re: Custom region code folding [message #642165 is a reply to message #642146] Tue, 30 November 2010 08:16 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=182579

Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Custom region code folding [message #642166 is a reply to message #642165] Tue, 30 November 2010 08:29 Go to previous messageGo to next message
codetale  is currently offline codetale Friend
Messages: 6
Registered: July 2010
Junior Member
Thank you,

but
"The highlight matching braket should still apply to preprocessor syntax"
it seem not what I am asking for

Re: Custom region code folding [message #642646 is a reply to message #642166] Thu, 02 December 2010 07:28 Go to previous messageGo to next message
Axel Mueller is currently offline Axel MuellerFriend
Messages: 1973
Registered: July 2009
Senior Member
codetale wrote on Tue, 30 November 2010 09:29
Thank you,

but
"The highlight matching braket should still apply to preprocessor syntax"
it seem not what I am asking for



Sorry. I didn't read your message carefully enough. This bug might be closer to what you want
https://bugs.eclipse.org/bugs/show_bug.cgi?id=258965


Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
Re: Custom region code folding [message #656557 is a reply to message #642146] Sat, 26 February 2011 19:41 Go to previous message
Tod  is currently offline Tod Friend
Messages: 3
Registered: November 2009
Junior Member
You can do pretty much the equivalent of the Visual Studio region code folding with the #if directive instead of #pragma

#if (1) //My Special Region
C++ code here
#endif //end my special region


Under: Windows >Prefs - >C/C++ > Editor > Folding make sure you have Enable folding of preprocess branches checked.


Previous Topic:CDT shows method prologues taken from .C files
Next Topic:MySQL Connector/C++
Goto Forum:
  


Current Time: Sun Dec 21 22:24:33 GMT 2014

Powered by FUDForum. Page generated in 0.02312 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software