如何在 Visual Studio 中从搜索中排除 .svn 目录?

发布于 2024-10-18 06:36:51 字数 79 浏览 3 评论 0原文

我必须“查找:”项目的子文件夹,因为整个项目非常大,搜索时间太长。

我还安装了 AnkhSVN,想知道插件中的设置是否也有帮助。

I have to "look in:" a subfolder of the project because the entire project is very large and takes too long to search through.

I also have AnkhSVN installed and wonder if a setting in the plugin could help too.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

熊抱啵儿 2024-10-25 06:36:51

如果您使用“在文件中查找”而不是标准搜索,则可以在子文件夹中搜索指定的文件类型。

但是,使用 Ultrafind 附加组件 (http://visualstudiogallery.msdn.microsoft.com/9fa9fdd7-1c06-45e3-a9f3-0381caab8f94) 执行此类任务要容易得多,您可以使用它来排除特定的文件模式。

If you use "Find in files" instead of the standard search, you can search a subfolder for file types you specify.

However, it's a lot easier to perform this kind of task using the Ultrafind add-on (http://visualstudiogallery.msdn.microsoft.com/9fa9fdd7-1c06-45e3-a9f3-0381caab8f94) which you can use to exclude specific file patterns.

等风来 2024-10-25 06:36:51

遗憾的是,尽管 Visual Studio 具有所有出色的功能,但从搜索中省略 .svn 目录的最简单方法是使用 Windows 资源管理器导航到 .svn 目录,右键单击该文件夹,转到“属性”,然后单击“隐藏”属性下的复选框。

如果您随后重新打开 Visual Studio 解决方案,它应该不会搜索这些文件。

Sadly, it seems that despite all the wonderful functionality of Visual Studio, the easiest way to omit .svn directories from searches is to use Windows Explorer to navigate to the .svn directory, right click the folder, go to Properties, and click the Hidden checkbox under Properties.

If you then re-open your Visual Studio solution, it should keep those files out of the searches.

动听の歌 2024-10-25 06:36:51

一种快速而肮脏的方法是简单地包含除 .svn 和 .svn-base 等之外的所有其他文件类型。

尝试使用这组通配符并添加您可能需要的以 S 开头的任何其他有效扩展名:

*.sql;*.svc;*.;*.?;*.??;*.a??;*.a???;*.a????;*.b??;*.b???;*.b????;*.c??;*.c???;*.c????;*.d??;*.d???;*.d????;*.e??;*.e???;*.e????;*.f??;*.f???;*.f????;*.g??;*.g???;*.g????;*.h??;*.h???;*.h????;*.i??;*.i???;*.i????;*.j??;*.j???;*.j????;*.k??;*.k???;*.k????;*.l??;*.l???;*.l????;*.m??;*.m???;*.m????;*.n??;*.n???;*.n????;*.o??;*.o???;*.o????;*.p??;*.p???;*.p????;*.q??;*.q???;*.q????;*.r??;*.r???;*.r????;*.t??;*.t???;*.t????;*.u??;*.u???;*.u????;*.v??;*.v???;*.v????;*.w??;*.w???;*.w????;*.x??;*.x???;*.x????;*.y??;*.y???;*.y????;*.z??;*.z???;*.z????;*.0??;*.0???;*.0????;*.1??;*.1???;*.1????;*.2??;*.2???;*.2????;*.3??;*.3???;*.3????;*.4??;*.4???;*.4????;*.5??;*.5???;*.5????;*.6??;*.6???;*.6????;*.7??;*.7???;*.7????;*.8??;*.8???;*.8????;*.9??;*.9???;*.9????;

(我必须使用 ? 的各种组合,而不是单个 *,因为最终的扩展名仍然可能是 .svn)

A quick and dirty way is to simply include every other file type except .svn and .svn-base etc.

Try using this set of wildcards and add any other valid extensions beginning with S that you might need:

*.sql;*.svc;*.;*.?;*.??;*.a??;*.a???;*.a????;*.b??;*.b???;*.b????;*.c??;*.c???;*.c????;*.d??;*.d???;*.d????;*.e??;*.e???;*.e????;*.f??;*.f???;*.f????;*.g??;*.g???;*.g????;*.h??;*.h???;*.h????;*.i??;*.i???;*.i????;*.j??;*.j???;*.j????;*.k??;*.k???;*.k????;*.l??;*.l???;*.l????;*.m??;*.m???;*.m????;*.n??;*.n???;*.n????;*.o??;*.o???;*.o????;*.p??;*.p???;*.p????;*.q??;*.q???;*.q????;*.r??;*.r???;*.r????;*.t??;*.t???;*.t????;*.u??;*.u???;*.u????;*.v??;*.v???;*.v????;*.w??;*.w???;*.w????;*.x??;*.x???;*.x????;*.y??;*.y???;*.y????;*.z??;*.z???;*.z????;*.0??;*.0???;*.0????;*.1??;*.1???;*.1????;*.2??;*.2???;*.2????;*.3??;*.3???;*.3????;*.4??;*.4???;*.4????;*.5??;*.5???;*.5????;*.6??;*.6???;*.6????;*.7??;*.7???;*.7????;*.8??;*.8???;*.8????;*.9??;*.9???;*.9????;

(I had to use various combinations of ? instead of a single * because the final extension could still be .svn)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文