Search and Replace - Multiple Files

Warning

Development of Sublime Text has moved on to version 3.

As a result, this branch for Sublime Text 2 will not be updated any more. Please select the latest branch in the panel on the bottom left and consider updating Sublime Text.

Searching

To open the search panel for files, press Ctrl + Shift + F. You can use the keyboard to control the search panel and some search actions:

Toggle Regular Expressions Alt + R
Toggle Case Sensitivity Alt + C
Toggle Exact matches Alt + W
Find Next Enter

Search Scope

The Where field in the search panel determines where to search. You can define the scope of the search in several ways:

  • Adding individual directories (Unix-style paths, even on Windows)
  • Adding/excluding files based on a pattern
  • Adding symbolic locations (<open folders>, <open files>)

You can combine these filters separing them with commas, for example:

/C/Users/Joe/Top Secret,-\*.html,<open files>

Press the ... button in the search panel to display a menu containing these options.

Results Format

In the search panel, you can find the following options to customize the results format:

  • Show in Separate Buffer/Output Panel
  • Show Context