Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to hide/collapse inactive code in Eclipse Juno?(Need to collapse/hide inactive code)
How to hide/collapse inactive code in Eclipse Juno? [message #1001655] Thu, 17 January 2013 06:25 Go to next message
Ethan Harvard is currently offline Ethan HarvardFriend
Messages: 5
Registered: October 2012
Junior Member
Greetings!

Is it possible to collapse/hide inactive code in a C++ project? How?


Thanks a Lot.
Re: How to hide/collapse inactive code in Eclipse Juno? [message #1001686 is a reply to message #1001655] Thu, 17 January 2013 08:04 Go to previous messageGo to next message
Dirk Wibben is currently offline Dirk WibbenFriend
Messages: 50
Registered: February 2010
Member
Hi!

How do you define 'inactive code'?

If it is by '#if ...' or '#ifdef ...', you can activate 'Enable folding of preprocessor branches' under 'Window | Preferences | C/C++ | Editor | Folding'.
And additionally you can activate 'Inactive Preprocessor Branches' under 'Initially fold these region types' in the same 'Preferences' dialogue.

HTH
Dirk


Best regards
Dirk
Re: How to hide/collapse inactive code in Eclipse Juno? [message #1001695 is a reply to message #1001686] Thu, 17 January 2013 08:21 Go to previous message
Ethan Harvard is currently offline Ethan HarvardFriend
Messages: 5
Registered: October 2012
Junior Member
Thanks Dirk!

Yes, i'm using #if kind of statements, It is working.
Previous Topic:Problem with custom build step
Next Topic:Standard Include folders are not showing in CDT
Goto Forum:
  


Current Time: Sat Dec 20 21:43:36 GMT 2014

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

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