Find in Files
You can use the Find in Files activity to search for text and patterns across all files in your repository.
Navigate the Find in Files activity
To show the Find in Files activity, click its activity-bar icon or click Tools > Find in Files.
The Find in Files activity starts searching after you type at least two characters into the Search in files field. Its 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. |
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.
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.