Often, when I want to search my code in Visual Studio, I know that the thing I'm looking for is in some C # code. However, since I used the same variable name in the JavaScript file, I must skip all these search results. It gets even worse when the text I'm looking for is also used in the third-party JavaScript library that we put into the project: this can lead to hundreds of search results.
To make matters worse, our designers include HTML page layouts in one project, so I often find that I also click on many search results.
I guess I really want to see the results in my .cs, .aspx and .ascx files, but not .js or .htm.
Is there a way to do one of the following:
- Search only in files of a certain type (search only .cs files).
- Search only in files of any given set of types (search only .cs, .aspx and .ascx files).
- Search all file types except for a specific type or type (search all but .js).
I don’t suspect that in this case there is some tricky way around this?
replace find search visual-studio-2008 visual-studio
teedyay Nov 17 '09 at 15:56 2009-11-17 15:56
source share