This handy navigation feature lets you expand the tree in the Solution Explorer, auto-scroll and highlight the item corresponding to the current document. It is especially useful when you have a massive solution, or a limited screen area that forces you to shrink the Solution Explorer window to the limit.
note
Note that this command will not work if the file that is opened in the editor is not included in the current solution.
This command also works with decompiled code allowing you to locate decompiled symbols in the Assembly Explorer window. In this case, the command is sensitive to the caret position: If the caret is on a specific symbol, the item corresponding to this symbol is highlighted in the Assembly Explorer; if the caret is elsewhere in the document, the root type of the document is highlighted.
In the editor, switch to a document that you want to locate in the Solution Explorer.
Press ShiftAlt0L or choose ReSharper | Tools | Locate in Solution/Assembly Explorer in the main menu,
ReSharper will bring up the Solution Explorer window or the Assembly Explorer window (depending on whether your caret is in the source code or in decompiled code) to focus and show you the item there.
tip
You can also locate a library symbol in the Assembly Explorer right from the source code where this symbol is used: While your caret is on the symbol, press Alt0` or choose ReSharper | Navigate | Navigate To… from the main menu, and then select Locate in Assembly explorer.
tip
Another way to locate any file in the Solution Explorer is to press CtrlShift0T to invoke Go To File, enter the name of the desired file, and then choose it in the result list and press Ctrl+Enter.
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.
Our website uses some cookies and records your IP address for the purposes of accessibility, security, and managing your access to the telecommunication network. You can disable data collection and cookies by changing your browser settings, but it may affect how this website functions. Learn more.
With your consent, JetBrains may also use cookies and your IP address to collect individual statistics and provide you with personalized offers and ads subject to the Privacy Notice and the Terms of Use. JetBrains may use third-party services for this purpose. You can adjust or withdraw your consent at any time by visiting the Opt-Out page.