暂时禁用 ReSharper 6 上的 StyleCop 警告

发布于 12-15 18:04 字数 153 浏览 8 评论 0原文

我下载了与 ReSharper 6 集成的 StyleCop 4.6.3,结果非常棒!

然而,在一个特定的项目中,我想(暂时)禁用 StyleCop 警告,并稍后再次启用。

有什么办法可以做到这一点吗?我似乎无法在 ReSharper 菜单(选项等)上找到它。

I downloaded StyleCop 4.6.3 which integrates with ReSharper 6 and the results are really fantastic!

However on a specific project I would like to disable the StyleCop warnings (temporarily) and enable again later on.

Is there any way of doing this? I can't seem to find it on the ReSharper menu (options, etc).

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

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

发布评论

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

评论(1

生寂2024-12-22 18:04:47

您可以为每个项目使用不同的 Settings.Stylecop 设置,只需创建一个忽略所有规则的设置即可。右键单击项目并选择 Stylecop 设置 进行修改。

我认为您还可以通过从 ReSharper->Plugins 中取消勾选插件来禁用插件...(在版本 5.1 中,不确定在 6.0 中是否相同)

You can use different Settings.Stylecop settings for each project, just create one that ignores all the rules. Right click on a project and select Stylecop settings to modify them.

I think you can also disable plugins by unticking them from ReSharper->Plugins... (in version 5.1, not sure if it's the same in 6.0)

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