Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: twgray on June 20, 2009, 07:09:35 pm

Title: Finding matching compiler conditionals?
Post by: twgray on June 20, 2009, 07:09:35 pm
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.
Title: Re: Finding matching compiler conditionals?
Post by: MortenMacFly on June 22, 2009, 07:11:27 am
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).