Go to Text
Ctrl+N 3 times
This navigation command lets you quickly find and navigate to any text in source and textual files of your solution. Besides files of supported languages, you can locate text in content files of the following types:
.styl. This command generally works much faster that Visual Studio's native Find in Files command, but as a downside, it does not support regular expressions.
By default, navigation to text is integrated into Go to Everything (Ctrl+N) — ReSharper will show textual occurrences matching the query string in the end of the results list, after all matching types, symbols, and files. You can disable this behavior by clearing Integrate Go to Text into Search Everywhere on the page of ReSharper options.
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 a text occurrence in code and textual files
- Press Ctrl+N 3 times or choose in the main menu
- In the Find text pop-up that appears, start typing text you want to find. As you type, the lookup list narrows down, suggesting entries that match the entered text.
- If you have navigated with this command during your current Visual Studio session, the last 10 strings you used for search appear in the drop-down list while the search field is empty.
If some text is selected in the editor or copied to the clipboard from Visual Studio, it appears in the search field.
- By default, the text field is case-insensitive here. If necessary, click Match case to make the search case-sensitive.
- Optionally, you can type the following filters before or after the search query:
/ext:- to limit the search for files with specific extension, for example,
/fm:- to limit the search for files matching specific mask, for example,
/cp- to limit the search for files in the current project.
- Do one of the following:
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 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 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.