Navigation between code and Resx files
Last modified: 21 July 2022ReSharper's navigation features (Go to Usages of Symbol and Go to Declaration) help you navigate between implementations of resources in .resx files and their usages in code files.
Navigate from declaration to usage
Open a .resx file in the XML (Text) editor.
Place the caret at the name of a resource.
Press Shift+Alt+F12 or choose ReSharper | Navigate | Show Usages from the main menu . Alternatively, you can press Ctrl+Shift+A, start typing the command name in the popup, and then choose it there.
ReSharper will open the code file where the resource is used. If there are two or more usages, you can select one of them in the list.
Navigate from usage to declaration
Open a code file where a resource is used.
Place the caret at the usage of resource property:
or at the name of the resource used in code:
Press F12 or choose ReSharper | Navigate | Go to Declaration from the main menu . Alternatively, you can press Ctrl+Shift+A, start typing the command name in the popup, and then choose it there.
Select a declaration from the list. You can navigate to the declaration of the property in the generated wrapper or to the resource declaration in .resx file.
tip
You can navigate from
ComponentResourceManager
andResourceManager
methods invocation to the corresponding resource declaration.You can also Ctrl-click resource usages to go to their declarations.
If you use files in resources (for example images, icons, audio files), you can use Go to Related Files to navigate to these files.
Navigate to related file
Open a .resx file in the XML (Text) Editor and set the caret anywhere in the file, or, alternatively, just select the file in the Solution Explorer.
In the main menu, choose ReSharper | Navigate | Related Files or press Ctrl+Alt+F7.
In the list of related files that appears, click the desired file or select it and press Enter.