Search and Replace - Single File¶
To open the search panel for the active file, press Ctrl + F. Some options and actions available through this panel can be controlled from the keyboard:
|Toggle Regular Expressions||Alt + R|
|Toggle Case Sensitivity||Alt + C|
|Toggle Exact Match||Alt + W|
|Find Previous||Shift + Enter|
|Find All||Alt + Enter|
The incremental search panel is bound to Ctrl + I. The only difference with 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 mainly a matter of preference.
To open the replace planel, press Ctrl + H. Some actions available through this panel can be controlled from the keyboard.
|Replace Next||Ctrl + Shift + H|
|Replace All||Ctrl + Alt + Enter|
Other Ways of Searching in Files¶
Goto Anything provides the # operator to search in the active file. The search term will be the text following the operator.
You can type in multiline search patterns into search panels. To enter newline characters, press Ctrl + Enter. Note that search panels are resizable.