您可以忽略 Resharper 中特定的冗余限定符吗?
我们一直在 VB 项目中使用 Me.Property 和 Me.Control,并且刚刚安装了 ReSharper。有谁知道有什么方法让它忽略这个特定类型的冗余限定符吗?
如果我使用任何其他冗余限定符,我仍然希望它抱怨。
We have always used Me.Property and Me.Control in our VB projects, and have just got ReSharper. Does anyone know of a way to get it to ignore this specific type if redundant qualifier?
I still want it to complain if I use any other redundant qualifiers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,所有已知的限定符冗余情况目前都包含在这个单一检查中,这意味着您不能告诉 ReSharper 忽略
Me
的出现,但仍然突出显示显式命名空间引用。这是一个相关的功能请求,您可以自由投票和观看。
As far as I know, all known cases of qualifier redundancy are currently covered by this single inspection, which means that you can't tell ReSharper to ignore occurrences of
Me
but still highlight, say, explicit namespace references.Here's a relevant feature request that you're free to vote for and watch.
我找到了实际上阻止警告出现的设置。
找到多余的“我”。限定符并将其从“警告”更改为“不显示”。
I have found the setting which actually stops the warning from appearing.
Find Redundant 'Me.' Qualifier and change it from "Warning" to "Do Not Show".