ReSharper
 
Get ReSharper
Get your hands on the new features ahead of the release by joining the Early Access Program for ReSharper 2025.1! Learn more

Find Usages of Symbols

Last modified: 11 February 2024

This command allows finding all usages of one or more symbols in the solution and referenced assemblies. You can start the search from the declaration of the symbol or from any other usage. You can invoke this command from the Solution Explorer, File Structure window, and other tool windows.

You can also list and study symbol usages in the Peek Definition view.

To do so, by default you can Ctrl-click the declaration or any usage with the middle mouse button. If you want to disable this, clear the Use Ctrl+Middle Button Click Peek Usages checkbox on the Environment | Search & Navigation page of ReSharper options Alt+R, O. Or you can always invoke this command from the main menu: ReSharper | Navigate | Peek | Peek Usages.

You can change the default behavior so that even the single found usage is also displayed in the Find Results window. To do so, clear the Go to Usage: if there is only one result.... checkbox on the Environment | Search & Navigation | General page of ReSharper options Alt+R, O.

ReSharper: Finding Usages of a Symbol

It is also possible to search for usages of multiple symbols declared in a specific scope, that is in one or more files, folders, or projects.

This feature is supported in the following languages and technologies:

The instructions and examples given here address the use of the feature in C#. For more information about other languages, refer to corresponding topics in the Languages and frameworks section.