Find in Files
Find in Files allows you to search a specified set of files. The matches found and actions taken are listed in the Find Results window selected in Result options.
You can use any of the following methods to display Find in Files in the Find and Replace window.
To display Find in Files
-
On the menu bar, choose Edit, Find and Replace.
-
Choose Find in Files.
To cancel a Find operation, press CTRL + BREAK.
Note
|
|---|
|
The Find and Replace tool does not search directories with the Hidden or System attribute set. |
To search for a new text string or expression, specify it in the box. To search for any of the 20 strings that you searched for most recently, open the list, and choose the string for which you want to search. Choose the adjacent Expression Builder button if you want to use one or more regular expressions in your search string. For more information, see Using Regular Expressions in Visual Studio.
The option chosen from the Look in drop-down list determines whether Find in Files searches only in currently active files or in all files stored within certain folders. Select a search scope from the list or click the Browse (...) button to display the Choose Search Folders dialog box and to enter your own set of directories. You can also type a path directly into the Look in box.
Caution
|
|---|
|
With the Entire Solution or Current Project options, project and solution files are not searched. If you want to look in project files, choose a search folder. |
Note
|
|---|
|
If the Look in option selected causes you to search a file that you have checked out from source code control, only the version of that file which has been downloaded to your local machine is searched. |
Note