User forums > Using Code::Blocks

Finding matching compiler conditionals?

(1/1)

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?

--- End quote ---
Well, you can setup the editor to collapse #ifdef regions. This way you can easily find the end. Check the editor options (settings -> editor).

Navigation

[0] Message Index

Go to full version