Find Usages of Symbols
This command allows finding all usages of one or more symbols in the solution. 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, from the File Structure window and other tool windows.
Find usages of a symbol
Place the caret at a symbol in the editor or select the symbol in a tool window.
Do one of the following:
In the main menu, choose.
Right-click and choose Find Usages in the context menu.
If a single usage is found, ReSharper will navigate you to the usage directly in the editor. Two or more search results will be shown in the Find Results window, where you can conveniently explore and analyze the usages.
If necessary, you can change the default behavior so that 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 in the page of ReSharper options.
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.
Find usages of multiple symbols
In the Solution Explorer, select one or more nodes — files, declarations inside them, folders, or projects.
Search results will be shown in the Find Results window, where you can see all declarations in that scope (search targets) and all usages of these symbols in the solution.
Find usages of generic types
When searching for usages of generic types such as
IFoo<string>, you may actually want to find either all usages of
IFoo<> or usages of the exact generic substitution
By default, ReSharper allows you to disambiguate the search results by showing an additional popup.
You can also configure the feature so that a specific search logic (either all substitutions or the exact substitution) should be always performed. To do so, use the Find generic type usages behavior selector on the page of ReSharper options.
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 details specific to other languages, see corresponding topics in the ReSharper by Language section.