Author Topic: Finding matching compiler conditionals?  (Read 2599 times)

Offline twgray

  • Multiple posting newcomer
  • *
  • Posts: 30
Finding matching compiler conditionals?
« 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Finding matching compiler conditionals?
« Reply #1 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).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ