如何找到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) orCmd+,(Mac). - Navigate to Code Inspection > Inspection Severity.
- In the search bar at the top, type
Redundant 'this.' qualifierto quickly locate the relevant inspection rule. - This rule is set to Hint severity by default, which is why your
thisqualifiers show up as transparent. Here's what you can do:- To turn off the transparency entirely: Change the severity level to Do not show.
- 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
相关产品推荐
相关产品推荐

