Search and Replace

Finding text

  1. On the Find menu, click Find
  2. In the Text to Find field, enter the text that you want to search for
  3. Configure the scope (current file, project files, directory etc.)
  4. Configure any other options
  5. Press Find, or Find All

Replacing text

  1. On the Find menu, click Find
  2. In the Text to Find field, enter the text that you want to search for
  3. In the Replace with field, enter the text that you want to replace
  4. Configure the scope (current file, project files, directory etc.)
  5. Configure any other options
  6. Press Replace, or Replace All

You can quickly navigate to next and previous occurrence of your search with F3 (next) and Shift+F3 (previous)

Regular Expression

Use regular expressions to search for advanced patterns files.

  • ^ A caret at the start of the string matches the start of a line
  • $ A dollar sign at the end of the expression matches the end of a line
  • . A period matches any character. An asterisk after a string matches none or any characters
  • + A plus sign after a string matches any number of occurrences of that string followed by any characters
  • [ ] Characters in brackets match any one character that appears in the brackets, but no others
  • [^] A caret at the start of the string in brackets means NOT
  • [-] A hyphen within the brackets signifies a range of characters. For example, [a-z] matches any character from a through z.
  • { } Braces group characters or expressions