您可以忽略 Resharper 中特定的冗余限定符吗?

发布于 2024-12-29 18:21:01 字数 125 浏览 1 评论 0原文

我们一直在 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 技术交流群。

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

发布评论

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

评论(2

给我一枪 2025-01-05 18:21:01

据我所知,所有已知的限定符冗余情况目前都包含在这个单一检查中,这意味着您不能告诉 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.

怪我闹别瞎闹 2025-01-05 18:21:01

我找到了实际上阻止警告出现的设置。

Options > Code Inspection > Inspection Severity > VB.NET > Redundancies in Code

找到多余的“我”。限定符并将其从“警告”更改为“不显示”。

冗余 '我的预选赛

I have found the setting which actually stops the warning from appearing.

Options > Code Inspection > Inspection Severity > VB.NET > Redundancies in Code

Find Redundant 'Me.' Qualifier and change it from "Warning" to "Do Not Show".

Redundant 'Me' Qualifier

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