Jeroen
Jeroen

Reputation: 4023

Search certain files only

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

Answers (5)

Alireza Maddah
Alireza Maddah

Reputation: 5885

For more information, you may refer to http://msdn.microsoft.com/en-us/library/dechx2tz.aspx.

Upvotes: 1

Steve Mallory
Steve Mallory

Reputation: 4283

On the "Find in Files" dialog, there is a 'Look in these file types' option, under 'Find Options'

Upvotes: 0

Brandon
Brandon

Reputation: 69953

Use the Find in Files search.

You can specify the extensions of the files you want to search.

Upvotes: 0

Bala R
Bala R

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.

enter image description here

Upvotes: 8

Jeff Parker
Jeff Parker

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

Related Questions