Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 800
Custodio Avatar asked Jun 09 '10 20:06

Custodio


2 Answers

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.

like image 183
Jason Avatar answered Sep 20 '22 20:09

Jason


You should try Productivity Power Tools for Visual Studio 2010. There are other versions, at least one for Visual Studio 2013 and another one for Visual Studio 2015.

It plays nicely with ReSharper and has this selected text matches highlighting both in the editor and the scrollbars among many other features.

like image 26
WillCroPoint Avatar answered Sep 19 '22 20:09

WillCroPoint