Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

DAVE™ Forum Discussions

Not applicable
The usage of #if/#endif defined(…)directive is used to allow a project to support multiple features and functionalities within a same code base. An inactive code block is often greyed out in most editor. This makes it difficult to navigate the code with large blocks of inactive code.

You can enable the folding of inactive code blocks marked with the #if / #endif defined(…)directive in the DAVE IDE Preferences.

Simply goto Windows -> Preferences -> C/C++ -> Editor -> Folding

  •  Check the option “Enable folding of preprocessor branches (#if/#endif)
  •  In the Group “Initially fold these region types”, check on “Inactive Preprocessor Branches”

Unclutter your view. Try it today!
0 Replies