禁用Resharper与评论 [英] Disable Resharper with comment

查看:160
本文介绍了禁用Resharper与评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑:问题是通过更新来解决的。

Problem is solved by updating.

Resharper真的很烦我标记100%正确的代码错误,它不断希望我将一个 Action 更改为 Action 当这显然不正确。每次我打字时都会闪烁,所以真的分心。有没有办法完全禁用resharper两个意见?或者你如何禁用此警告?

Resharper is really annoying me and marking code that is 100% correct as wrong, it keeps wanting me to change an Action to an Action<T1,T2...Tn> when this obviously incorrect. It flashes everytime I type something so is really distracting. Is there a way to disable resharper totally inbetween two comments? Or how do you disable only for this warning?

编辑:左侧没有提示可以使用注释来禁用此项。

There is no hint on the left to disable this using comments.

当您按 Alt + 时弹出的菜单返回

编辑:我发现一个解决方案,只是在 #region RFail #endregion 语句中包含违规行。

I found a solution, just wrap the offending lines of code in #region RFail and #endregion statements. Not ideal though.

推荐答案

RESharper - 选项

RESharper - Options


  • 代码检查

  • 设置

  • 取消选中(使用弹出窗口显示导入命名空间操作)

禁止警告。

这篇关于禁用Resharper与评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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