ReSharper Help

Finding Usages of Related Entities

ReSharper | Find | Find Usages Advanced
Shift+Alt+F7
ReSharper_FindUsagesAdvanced

This command enables you to find usages of entities that are somehow related to the selected symbol (for example, derived types, overriding methods etc.) in the specific scope. You can invoke this command from the editor, from the File Structure and other tool windows.

To perform advanced search for usages

  1. Place the caret on a symbol in the editor or select the symbol in a tool window.
  2. In the main menu, choose ReSharper | Find | Find Usages Advanced or press Shift+Alt+F7.
  3. In the Search Properties dialog box that opens, you can customize your search.
  4. Use check boxes in the Find column to specify what kind of relates symbols should be included in the results. Depending on the original symbol, the set of options varies. E.g., if it is a type, you can look for usages of members; if it is a delegate, you can look for delegate target, etc. For more information, see Search Properties.
  5. In the Scope column, choose the scope of the search.
  6. If the original symbol is an overriding member in a derived class or an implemented interface member, ReSharper displays the original member and all its base members in the Search field. Yyou choose whether to look for usages of the base member or those of the overriding member.
  7. Click Find.
  8. 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.
Finding usages of related symbols

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.... check box in the Environment | Search & Navigation options page.

This feature is supported in the following languages/technologies:

C# VB.NET C++ HTML ASPX Razor JavaScript TypeScript CSS XML XAML RESX Build Scripts
feature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_availablefeature_available

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.

See Also

Last modified: 3 September 2015