Visual Studio - 从搜索中排除moles文件

发布于 2024-12-22 20:10:49 字数 147 浏览 3 评论 0原文

我知道 Visual Studio 允许您指定您想要在查找和替换对话框中搜索的文件类型,这通常效果很好。然而,生成的鼹鼠文件的路径以“mgcs”结尾。搜索 .cs 文件时,也会搜索这些文件,这会在查找结果中产生大量噪音。有没有办法指定在查找和替换中应忽略匹配“*mgcs”的文件?

I know Visual Studio allows you to specify what kinds of files you want to search in the find and replace dialog, which works well in general. Generated moles files, however, have a path ending in "m.g.cs". When searching for .cs files, these are also searched, which produces a ton of noise in the find results. Is there a way to specify that files matching "*m.g.cs" should be ignored in the find and replace?

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

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

发布评论

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

评论(1

三生殊途 2024-12-29 20:10:49

您是否尝试将新项目(文件夹集)添加到查找范围下拉列表中?

其操作方法如下:
添加文件夹集

Did you try adding a new item (folder set) to the Look in drop-down list?

Here's how it's done:
adding a folder set

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