如何告诉Visual Studio从“查找文件"中排除文件夹? [英] How do I tell Visual Studio to exclude folders from the Find in Files?

查看:234
本文介绍了如何告诉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.

这篇关于如何告诉Visual Studio从“查找文件"中排除文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆