Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
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
Eclipse UserFriend
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: Wed Jul 23 15:09:15 EDT 2025

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

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

Back to the top