In VS2010, is it possible to search only a specific type of file? I want to search only my cs code and exclude .aspx and VS generated code from datasets and edmx files.
Go to Find in Filesand fill in the search bar Find What:and open "Search Options" and fill in Look at these file types:with *.cs.
Find in Files
Find What:
Look at these file types:
*.cs
In the section "Search and replace / search in files" (Ctrl + Shift + F), expand "Find options", then you will see the "Look at these types of files" window. Enter "* .cs" there, and it will only look at files with the extension .cs.
http://msdn.microsoft.com/en-us/library/dechx2tz.aspx.
Use search in search files.
You can specify the file extensions you want to find.
In the Find in Files dialog box, there is an option to Search in These File Types under the Search Options section.