Reputation: 4023
In VS2010 is it possible to search within a certain file type only? I want to search just my cs code and exclude .aspx files and VS generated code from datasets and edmx files.
Upvotes: 3
Views: 744
Reputation: 5885
For more information, you may refer to http://msdn.microsoft.com/en-us/library/dechx2tz.aspx.
Upvotes: 1
Reputation: 4283
On the "Find in Files" dialog, there is a 'Look in these file types' option, under 'Find Options'
Upvotes: 0
Reputation: 69953
Use the Find in Files search.
You can specify the extensions of the files you want to search.
Upvotes: 0
Reputation: 108937
Go to Find in Files
and fill out your search string in Find What:
and expand Find options and fill out Look at these file types:
with *.cs
.
Upvotes: 8
Reputation: 7507
Under Find and Replace/Find in Files (Ctrl+Shift+F), expand "Find options", then you'll notice a box called "look at these file types". Enter "*.cs" in there, and it'll only look at files with the .cs extension.
Upvotes: 1