JetBrains Rider 2019.3 Help

Find and Replace Text in Solution

You can search and replace text in the entire solution, project, or any directory with its nested hierarchy. Explore search results in the preview tab or in the Find tool window.

Find text in solution

  1. Press Ctrl+Shift+F or choose Edit | Find | Find in Path.

  2. In the Find In Path dialog, specify the following options:

    • Start entering the text. Type the text explicitly, or specify a pattern using a regular expression, or select a previously used piece of text or a pattern from the recent entries' list.

      If you specify the search pattern through a regular expression, use the $n format in back references (to refer to a previously found and saved pattern).

    • Search scope (solution, project, directory, or custom scope) is customizable. If you select Scope, you can search everywhere or select specific attached directories, scratches and consoles, or files. Also, you can select specific data sources and perform the search only in these data sources.

      If you select Directory, you can search in attached directories or attach a directory and search here.

      Search scope
    • Search options (case sensitivity, whole words, and regular expressions).

      Search options
    • Context search options.

      Context search

    The results are displayed in the preview area.

In contrast to other navigation and search commands, the results of Find in Path Ctrl+Shift+F are by default displayed in the same tab of the Find Results window. If you want the results of previous textual searches to be preserved in different tabs, click Show Tab Options Show Tab Options in the bottom left corner of the Find in Path popup and choose Open Results in New Tab:

Open results in new tab

Replace text in the solution

  1. Press Ctrl+Shift+H or select Edit | Find | Replace in Path from the main menu.

  2. In the Replace In Path dialog, specify the search and replace strings, the search options, and the scope. Type the search and replacement text explicitly, or specify patterns using a regular expression, or select a previously used piece of text or a pattern from the recent history list.

    • If you specify the search and/or replacement text through a regular expression, use the $n format in back references (to refer to a previously found and saved pattern).

    • To use a backslash character \ in a regular expression, escape the meaningful backslash by inserting three extra backslashes in a preposition: \\\\.

  3. Click Open in Find Window Ctrl+Enter to open a Find tool window with the list of encountered occurrences and a preview of the occurrences alongside.

Toggle between the Find and Replace

  1. To switch from the Find In Path to Replace In Path window, press Ctrl+Shift+H.

  2. To switch from the Replace In Path to Find In Path window, press Ctrl+Shift+F.

Last modified: 24 February 2020