You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何找到Resharper中按规则调整代码透明度的设置选项?

How to Adjust Transparency of Redundant this. Qualifier in ReSharper

Hey there! I know exactly where that setting lives—let me walk you through it step by step:

  • First, open ReSharper's settings using the shortcut Ctrl+Alt+S (Windows) or Cmd+, (Mac).
  • Navigate to Code Inspection > Inspection Severity.
  • In the search bar at the top, type Redundant 'this.' qualifier to quickly locate the relevant inspection rule.
  • This rule is set to Hint severity by default, which is why your this qualifiers show up as transparent. Here's what you can do:
    1. To turn off the transparency entirely: Change the severity level to Do not show.
    2. To adjust the transparency level: Head over to Editor > Color Scheme > Language Defaults, find the Hint entry, and tweak the opacity or color to your preference.

A quicker shortcut: Right-click on one of the transparent this keywords in your code, hover over ReSharper > Inspect, then select Explain Inspection Error. From the pop-up that appears, click the small settings icon next to the rule name—it'll jump you straight to the exact severity setting for this rule.

Content sourced from Stack Exchange, asked by Samuel

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 06:40:54