如何告诉Visual Studio从“查找文件"中排除文件夹?

如何告诉Visual Studio从“查找文件

问题描述:

我们使用颠覆,因此我们的解决方案中有名为_svn的子文件夹.在文件中查找会从这些子文件夹返回字符串. 无论如何,有没有告诉Visual Studio忽略这些文件?

We use subversion so we have subfolders named _svn in our solution. Doing a Find in Files returns strings from these subfolders. Is there anyway to tell Visual Studio to ignore these files?

您可以做的是设置一组用于搜索的文件夹.在查找和替换"窗口的查找"输入右侧,您具有选择搜索文件夹"选项,可在其中设置这些文件夹集.
如果您已添加根项目文件夹,只需记住关闭包括子文件夹"选项.
如果您没有数百个文件夹,则此解决方案应该可以使用.

What you can do is to setup a set of folders that will be used for searching. In Find and Replace window, on the right hand side of "Look In" input you have a "Choose Search Folders" option where you can setup those sets of folders.
Just remember to turn off "Include sub folders" options if you have added root project folder.
If you don't have hundreds of folders this solution should work.