Find and replace
Find a text in the file in front, with or without replacing it, or in every file of the project.
Find in the file
- Press ⌘F on the Mac, Ctrl+F on Windows and Linux. A bar opens over the code.
- Write the text. Each match is marked.
- Press Enter or next for the next one, and previous to go back.
Esc closes the bar. With it closed, F3 goes to the next match and Shift+F3 to the previous one. On the Mac, ⌘G and ⇧⌘G do it too.
Three boxes change how it looks for the text:
| Box | What it does |
|---|---|
| match case | Tells capital letters from small ones |
| regexp | Reads the text as a regular expression |
| by word | Finds whole words only |
all selects every match, with a cursor in each one.
Replace in the file
In the same bar, write the new text in Replace:
- replace changes the match that is selected and goes to the next.
- replace all changes them all. Undo takes it back in one step.
With regexp, $1 is the first group of the expression, $2 the second, and $& the whole match.
Find in the project
- Press ⇧⌘F on the Mac, Ctrl+Shift+F on Windows and Linux. Find opens on the left. If you have some text selected, it is already written.
- Press Enter.
- Press a line to go to it.
The buttons under the field are Match case, Whole words and Regular expression. While it looks, the button Stop finding stops it.

The lines are grouped by file. It shows 2,000 at most, and a plus after the number says that there are more: write a longer text to find fewer.
What it finds in the project
- It looks in the files on the disk. What you have not saved is not there yet.
- It leaves out
.git,node_modules, what your.gitignorefiles leave out, and files that are not text. - It only finds: there is no replacing in the whole project.
In a folder on a server it looks in fewer files.