Excluding specific files from Visual Studio search

pajics picture pajics · May 3, 2013 · Viewed 24.7k times · Source

Is it possible to exclude certain files from search in Visual Studio.

For example jquery.js is almost always polluting my search results with half result coming from that file.

I know you can white-list specific types, but when I want to search in .js extension is there solution for that?

Vote here for feature: https://developercommunity.visualstudio.com/idea/405990/code-search-exclude-files-from-search.html?inRegister=true

Answer

Wilson Alberto picture Wilson Alberto · Sep 24, 2015

Altough it does not solve your problem it may help out a bit

Ctrl + Shift + F should trigger the Find and Replace window.

From there, click Result Options and select "Display file names only".

It won't have all the info you need but might make it easier to recognize the files.