Complete the following steps to search in all project files for a text string:
Open the Find menu and click Find in Files.
On Windows, you can instead press Ctrl-Shift-F.
On macOS, you can instead press Cmd-Shift-F.
In the Find box that appears below the editor, type the text string you want to find.
(Optional) In the box to the right of the find button, enter a pattern for the filenames you want to match. Several patterns can be separated by a comma, and files can be excluded by beginning a pattern with a minus sign.
By default, all files are matched except those whose names begin with a dot.
Click the Find button.
The
Search Results window appears below the editor.
Double-click a line in the Search Results window to open the source file in the editor.