ReSharper 2017.1 Help

Go to Everything/Type

ReSharper | Navigate | Go to Everything / Type…
Ctrl+N
ReSharper_GotoType

This command combines two different features:

  • Go to Everything, which appears first, allows you to navigate to the following destinations: types, symbols, files, recent edits, recent files, and recently viewed methods. The list of suggestions appears as soon as you invoke this feature and initially includes your recent files and navigated items.
  • Go to Type, which appears the second time you press Ctrl+N or invoke the command from the menu, allows you to navigate to any type.

Using these features you can search items in symbols and files in your entire solution as well as all assemblies referenced in the projects of your solution. Search results also include matching items from all assemblies that are currently loaded in the Assembly Explorer window.

Note that this command works in global scope, i.e. you do not need to bring your focus to the editor to invoke it.

To navigate to everything or to a type

  1. Press Ctrl+N or choose ReSharper | Navigate | Go to Everything / Type… in the main menu.
  2. In the Enter type/symbol/file name pop-up list that appears, start typing the item name. As you type, the list of items narrows down, suggesting names that match the entered substring.
  3. To further narrow down the list of items, you can type / to apply filters. For example, you can type /me to display only events. Note that you can type filters both before and after your search query.
  4. To switch to the Go to Type feature, click the menu command or press the shortcut once again. The Enter type name pop-up list appears where you can specify a type you are looking for.
  5. Select the Include library types check box or press Alt+N to display items from libraries referenced in the solution.
    By default, as long as your input matches something in your solution, only solution items are displayed. If there are no matches for your input in the solution, ReSharper starts looking for matching library types automatically.
  6. Do one of the following:
    • Click on the desired item to open it in the editor.
    • Select the desired item by pressing Up and Down and then press Enter to open it in the editor.
    • To view and analyze the list of matched items in the Find Results window, click Show in Find Results /help/img/dotnet/2017.1/ThemedIcon.SearchResults.Screen.[Gray].png or press + on the numeric keypad.

If the item you navigate to belongs to the current solution, ReSharper opens the corresponding file in the editor and places the caret at the symbol declaration. If it is found in referenced libraries, ReSharper navigates according to the settings defined on the Tools | External Sources page of ReSharper options.

You can narrow down the list of items using CamelHumps. It is case-insensitive, so there is no difference between 'rtbf' and 'RTBF'. ReSharper always shows recently visited items at top of the list and highlights them in green.

/help/img/dotnet/2017.1/Navigation_and_Search__Go_to_Type.png
If you want to navigate to a type, for example, by its fully qualified name, type parts of the name and split them with spaces or dots. Consider the example below:
/help/img/dotnet/2017.1/Navigation_and_Search__Go_to_Type__spaces.png
You can also use wildcards when specifying the name: '*' (asterisk) represents zero or more characters; '+' (plus), ':' (semicolon), '.' (dot), and '\' (backslash) separate parts of the type's fully qualified name.
/help/img/dotnet/2017.1/Navigation_and_Search__Go_to_Type__wildcards.png
To specify a line in the searched file, type it after a ':' (colon).

To disable the Go to Everything functionality and navigate to types only, clear the Enable 'Go to Everything' check box on the Environment | Search & Navigation page of ReSharper options.

ReSharper can optionally remember the last input that you used to find something with Go to Everything/Type, Go To File, and Go to Text actions. To enable this behavior, select Remember last search on the Environment | Search and Navigation page of ReSharper options. When this option is selected, ReSharper will also use your selection in the editor as the search string.

This feature is supported in the following languages/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.

Last modified: 12 October 2017

See Also