Find and Replace in Path
Use Ctrl+Shift+F and Ctrl+Shift+R to switch between the find and replace modes.
Search pattern and replacement text options
|Match case||Select this checkbox to have IntelliJ IDEA distinguish between upper and lowercase letters while searching.|
|Preserve case||If you select this checkbox IntelliJ IDEA retains the case of the first letter and the case of the initial string in general. For example, MyTest will be replaced with Yourtest if you specify yourtest as the replacement.|
|Words||Select this checkbox to have IntelliJ IDEA search for whole words or their parts, (character strings separated with spaces, tabs, punctuation, or special characters).|
|Regex||Select this checkbox if the specified search pattern should be treated as a regular expression.|
|Use this drop-down list to confine the search to a certain context, for example: |
|File mask|| Select this checkbox to narrow down the search scope through file masks. In the drop-down list, select the desired mask or specify a new one using wildcards. |
If text to find is not entered, and this checkbox is selected, then IntelliJ IDEA find all files matching the specified mask, regardless of their contents.
|Search field||In this field, specify the search pattern. Type the text manually or select one of the previously specified patterns from the drop-down list. |
Click icon to see the list of recent search entries.
|Replace field||In this field, specify the replacement text. Type the text manually or click icon to select one of the previously specified replace entries from the drop-down list. |
|In Project||Select this option to search through the entire project.|
|Module||Select this option to search through a module within the project. IntelliJ IDEA displays a field with the name of the current module. If you have more than one module you can switch to another module using the drop-down list.|
|Directory||Select this option to perform search within the specified directory. By default, the text area already contains the directory name where a file currently opened in the editor is located (if you call the dialog from the editor), or where a file selected in the tool window is located (if you call the dialog from the tool window), or the directory name selected in the tool window. |
Pressing the ellipsis button opens the Select Path dialog, where you can select the necessary directory.
|This icon is only available for the directory search. Select it to set the search to be performed in the chosen directory and its subdirectories.|
|Scope||Select this option to search in a scope. |
You can choose one of the scopes from the drop-down list, or click the ellipsis button, and define a new scope in the Scopes dialog.
Use this area to check the preview of your search target.
You can press Up or Down keys to navigate between entries in the preview area without leaving the search field. You can press F4 to get to the selected entry in the editor. You can also edit your entry right in the preview area. IntelliJ IDEA opens an editor for each search result so you can edit the result without leaving the Find in Path or Replace in Path window. Press F3 to skip to the next matched entry in the preview editor. You can also press Ctrl+F to search through the current file or Ctrl+R to replace text in the current file.
|Click the down arrow to reveal the result presentation options.|
|Open in Find Window|| |