Search code examples
visual-studiopluginsresharperadd-in

Highlight all occurrences of a selected object with ReSharper


I was used to use RockScroll (or MetalScroll), but when I started to use ReSharper my RockScroll start to show some bugs. Well, this is scope to another discussion https://stackoverflow.com/questions/1089493/is-rockscroll-compatible-with-resharper.

But my problem is related, because now without MetalScroll I can't highlight all occurrences, what I consider very useful in many situations.

Someone have another plugin for VS2010 or for ReSharper that do the same or better?


Solution

  • I think you are looking for "Highlight usages in file" This can be access via Shift+Alt+F11 or Ctrl+Shift+F7 depending if you are using VS key bindings or InteliJ bindings. Use either Ctrl+Alt+Up/Down or Ctrl+Alt+PageUp/PageDown to go to next and previous highlights.

    You can also use the Ctrl+Alt+G combo to bring up a menu of what to jump to. This can be used to move the cursor to the next occurrence.