Search and Replace – Single File¶
Searching¶
Keyboard shortcuts related to the search panel:
Open search panel | Ctrl + F |
Toggle regular expressions | Alt + R |
Toggle case sensitivity | Alt + C |
Toggle exact match | Alt + W |
Find next | Enter |
Find previous | Shift + Enter |
Find all | Alt + Enter |
Incremental Search¶
Keyboard shortcuts related to the incremental search panel:
Open incremental search panel | Ctrl + I |
Toggle regular expressions | Alt + R |
Toggle case sensitivity | Alt + C |
Toggle exact match | Alt + W |
Find next | Enter |
Find previous | Shift + Enter |
Find all | Alt + Enter |
The only difference between this panel and the regular search panel lies in the behavior of the Enter key. In incremental searches, it will select the next match in the file and dismiss the search panel for you. Choosing between this panel or the regular search panel is a matter of preference.
Replacing Text¶
Keyboard shortcuts related to the replace panel:
Open replace panel | Ctrl + H |
Replace next | Ctrl + Shift + H |
Replace all | Ctrl + Alt + Enter |
Tips¶
Other Ways of Searching in Files¶
Goto Anything
provides the operator #
to search in the active file.
Multiline Search¶
You can type in multiline search patterns into search panels. To enter newline characters, press Ctrl + Enter.
Note that search panels are resizable too.