Table of Contents
Search and Replace
Finding text
- On the Find menu, click Find
- In the Text to Find field, enter the text that you want to search for
- Configure the scope (current file, project files, directory etc.)
- Configure any other options
- Press Find, or Find All
Replacing text
- On the Find menu, click Find
- In the Text to Find field, enter the text that you want to search for
- In the Replace with field, enter the text that you want to replace
- Configure the scope (current file, project files, directory etc.)
- Configure any other options
- 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