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 01:25 Go to next message
Ethan Harvard is currently offline Ethan Harvard
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 03:04 Go to previous messageGo to next message
Dirk Wibben is currently offline Dirk Wibben
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 03:21 Go to previous message
Ethan Harvard is currently offline Ethan Harvard
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 Aug 23 07:39:47 EDT 2014

Powered by FUDForum. Page generated in 0.01572 seconds