Search code examples
visual-studio-2012findinfiles

Visual Studio - Find in Files except in files with type of


Visual Studio's Find and Replace has the option "File types:" which allows you to specify specific file types to look in (eg. all .aspx files - by using *.asp).

It is possible to specify file types NOT to look in?

I need to "search in all files except .resx files".


Solution

  • It's not possible to specify file types NOT to look at with the Visual Studio's Find and Replace.

    Update in 2025:

    The feature was introduced in Visual studio 2019 (16.7). Use the exclamation mark to exclude file types from search:

    *.cs, *.xaml.cs, !*.Designer.cs

    will look in files of type cs and xaml.cs but will skip Designer.cs files.