News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Finding matching compiler conditionals?

Started by twgray, June 20, 2009, 07:09:35 PM

Previous topic - Next topic

twgray

Is there any method for finding matching conditionals with CodeBlocks?  What I mean is, is there a way of finding the matching #else or #endif for a #ifdef or #ifndef?  Some editors use the same logic and key-code to do this as they do for finding matching braces.  Is there a way of doing this with CodeBlocks?

Thanks.

MortenMacFly

Quote from: twgray on June 20, 2009, 07:09:35 PM
Is there a way of doing this with CodeBlocks?
Well, you can setup the editor to collapse #ifdef regions. This way you can easily find the end. Check the editor options (settings -> editor).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]