So Visual Studio 2010 has this cool new feature called Reference Highlighting. If you don’t know anything about it yet, go and read the excellent Visual Studio Tips & Tricks blog to find out how to use it. What Zain Nabousi’s post doesn’t say however is that you can also customize the color of the highlighted symbols:

  1. Go to Tools > Options > Fonts and Colors.
  2. Select Text Editor in the Show settings for dropdown.
  3. Select Highlighted Reference from the Display items list.
  4. Change the item foreground and background to your preferred colors.

Reference Highlighting

Now when the cursor is place on a field for example, all references are highlighted as shown below and you can navigate between them using Ctrl + Shift + Down/Up Arrows.Visual Studio highlighted referenceNote that to remove the highlight, you need to move the cursor away from the field.

ReSharper has had a similar functionality since as far as I can remember - that is since at least version 3. To activate it press Shift + Alt + F11 and use Ctrl + Alt + Page Up/Down to move between the highlighted references. But, as usual, ReSharper goes one step further by highlighting where the symbol is being used (blue by default) or set (pink by default). ReSharper also places a coloured and clickable marker in the vertical margin that corresponds to the symbol’s usage within the file. To remove the highlighting simply Escape.ReSharper highlighted referenceThat’s it!