Find in Files
You can use Find in Files to search for text and patterns across all files in your repository.
Navigate the Find in Files
To open Find in Files, click Tools > Find in Files.
To search for files containing specified characters, click Text and type into the Search in files field. Find in Files starts searching after you type at least two characters into the Search in files field. The header updates to show the current search.
You can use the Include field to include only specified files and the Exclude field to skip specified files using comma-separated glob patterns. You can also toggle the following icons to filter your search results.
| Filter | Description |
|---|---|
| Match Case | Matches the exact letter casing. |
| Use Regex | Interprets the query as a regular expression. |
| Match Whole Word | Matches only complete words. |
To search files for a specific symbol when language servers are enabled, click Symbol. Then, click the Choose Symbol dropdown and select a symbol.
Results
Find in Files results are sorted by file. Each file group shows the file name, the number of search results, and the line containing the matching text or symbol.
Click the file name to collapse or expand the file group. Click Collapse All or Expand All to collapse or expand all file groups. Click a search result to open the file at the exact line.
Click Clear to reset the search and search results.
Find in Files ignores files excluded by your .gitignore file.