Configuring Highlighting for C and C++ Projects
See Also
You can use the Options window to configure semantic highlighting for your
C and C++ projects. The IDE can display various code elements with text highlights
such as different colors, underlining, or font weights to make the code easier to understand.
To configure highlighting:
- Choose Tools > Options.
-
Click C/C++ in the top pane of the window.
- Click the Highlighting tab.
-
Modify the properties as desired.
You can set the following properties:
- Mark Occurrences of Symbol Under Caret. If this option is selected, then
when you click on a class, function, variable, or macro, all occurrences
of that class, function, variable, or macro in the current file are
highlighted.
- Keep Marks. If this option is selected, highlighted classes,
functions, variable, and macros remain highlighted until you move the cursor to another symbol.
- Highlight Inactive Code. If this option selected, inactive code
is highlighted.
- Highlight Class' Fields. If this option selected, class
fields are highlighted.
- Highlight Function's Names. If this option selected,
function names are highlighted.
- Highlight Macros. If this option selected, macros are highlighted.
- Highlight Typedefs. If this option is selected,
typedefs are highlighted.
- Highlight Unused Variables. If this option is selected, unused variables are highlighted.
- Highlight Syntax Errors. If this option is selected, syntax errors are highlighted.
- Highlight Unresolved Include Files. If this option is highlighted, include files that cannot
be resolved are highlighted.
- Highlight Unresolved Identifiers. If this option is selected, unresolved identifiers are highlighted.
- Reparse on file change. If this option is selected, files you edit are reparsed to check syntax after
each change, to keep the syntax highlighting accurate. If you deselect this option, reparsing occurs only
when the file is saved. Deselecting this option might be useful when working with very large files
if reparsing causes delays, but might cause temporary inaccuracy with highlighting.
- Show Overridden Annotations. If this option is selected, the editor will show pop-up annotations for
methods that override a parent method, or that are overridden by a descendent class. The annotations contain links to
the associated methods and classes.
Legal Notices