Find in Path and Replace in Path dialogs
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 check box to have DataGrip distinguish between upper and lowercase letters while searching.|
|Preserve case||If you select this check box DataGrip 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 check box to have DataGrip search for whole words or their parts, (character strings separated with spaces, tabs, punctuation, or special characters).|
|Regex||Select this check box 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 check box 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 check box is selected, then DataGrip 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. DataGrip 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 custom scope. |
You can choose one of the scopes from the drop-down list, or click the ellipsis button, and define a new scope.
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 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. DataGrip opens an editor for each search result so you can edit the result without leaving the Find in Path or Replace in Pathwindow. 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|| |