# Mark Occurrences preferences

Use the Mark Occurrences preference panel to set annotations for the C/C++ Editor view.

Mark Occurrences Preference Options
Option | Description | Default
--- | --- | ---
Mark occurrences of the selected element in the current file | If enabled, then you'll see within a file, where a variable, function, method, type, macro or other element is referenced. | On
Keep marks when the selection changes | If enabled, don't change the location of the mark occurrence when a new selection is made. | On

Coding aids

Customizing the C/C++ editor

C/C++ editor preferences