禁用Resharper与评论 [英] Disable Resharper with comment
问题描述
编辑:问题是通过更新来解决的。
Problem is solved by updating.
Resharper真的很烦我标记100%正确的代码错误,它不断希望我将一个 Action
更改为 Action
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屋!