Search and replace
Use the Search tool when you need every match in the project at once: an error message, a config key, an API name you're about to change. You can narrow the search, group the results, and replace matches across files.
Find text in the open file
In the editor, press Ctrl+F.
Type what you're looking for. Use the icons in the field to match case, match whole words, or use a regular expression, and the arrows to move between matches. Press Alt+Up to go back to an earlier query.
Search across the project
On the tool bar on the right, click Search.
Press Ctrl+T and select Search.
Enter the text you want to find. You can use regular expressions and the search options in the search field.

Select a match to open the file at that line.
Narrow the search
When a search returns too much, use the Search Options menu in the Search tool to scope it down.
Limit the search scope
In the Search tool, open Search Options.
Enable Scope to show the In folder field.
Enter the folder to search in.
To search one folder straight from the project tree, right-click it in the Files tool and select Find in Files.
Filter by file name pattern
In the Search tool, open Search Options.
Enable File Mask to show the File mask field.
Enter a file name pattern, for example
*.java.
Group results by folder
In the Search tool, open Search Options.
Under Group By, select Folder. Parent folders appear in the results pane.
Replace in multiple files
To go straight to replace mode from anywhere, press Ctrl+Shift+H (Replace in Files).
Switch between search and replace
In the Search tool, click the arrow at the left of the search field to show the replace field.
Type the replacement. Press Alt+Enter to replace the selected match, or Ctrl+Alt+Enter (⌥ ⌘ ⏎ on macOS) to replace all of them.
Replacements are edits of your own, so commit them from the Changes tool before the agent's next turn – see Edits you make yourself.
Find and replace actions
Four similarly named actions cover the two scopes: the file you have open, and the whole project. If you don't remember a shortcut, press Ctrl+Shift+K for the Actions tab of Go to All and type find or replace.
Action | Scope | Shortcut |
|---|---|---|
Find | The file you have open | Ctrl+F |
Replace | The file you have open | Ctrl+H |
Find in Files | The whole project. Opens Text Search, which is built for jumping to one result – see Go to All. | Ctrl+Shift+F |
Replace in Files | The whole project. Opens the Search tool in replace mode. | Ctrl+Shift+H |