Highlight References to Symbol Under Cursor

Highlight references to the symbol at the caret position automatically as you move through code, whether by keyboard or mouse. Press Esc to clear the highlighting.

highlightSymbolsUnderCursor
Only symbols matching the current context are highlighted. Any identically named symbols in different contexts are ignored.

Two colors are used for highlighting references to distinguish those values that may be modified from those that are read-only.

To quickly navigate between highlighted references, use the VA Find Next by Context and Find Previous by Context toolbar buttons, or bind the VAssistX.FindNextbyContext and VAssistX.FindPreviousbyContext commands to keystrokes. Note these navigation commands function whether or not highlighting is enabled.

Options

This feature uses the same highlight colors as Find References.

Visual C++ 6 users may specify the two highlight colors in the Visual Assist X options dialog.

highlightFindReferences.png

Visual Studio users can specify both foreground and background colors for modified and unmodified references via the Tools | Options | Environment | Fonts and Colors property page of the IDE.

ideFindReferencesColorUnmodified.png

Enable or disable this feature using the Refactoring tab of the VA options dialog.

Highlight References to Symbol Under Cursor

Miscellaneous

The Visual Studio 2010 implementation of this feature takes precedence if enabled (applies to VB/C# only).

This feature might be more appropriately named Highlight References to Symbol at Text Caret, but we have elected to use the cursor nomenclature to conform to Visual Studio 2010 naming conventions.