Visual Studio 2015 - Change Light Bulb, Quick Acti

2019-01-25 01:55发布

I've started using Visual Studio 2015 today and really like the Light Bulb or Quick Action setting. I want to change these settings though, how do I do that?

Specifically the rule IDE0003 which is trying to remove this from local properties or members.

enter image description here

How do I configure this rule or remove it?

2条回答
Luminary・发光体
2楼-- · 2019-01-25 02:15

trying to remove this from local properties or members.

There is a setting under Text Editor | C# which controls whether this is used for member access: does this control that rule? (I don't have an install to hand to get the exact name.)

查看更多
老娘就宠你
3楼-- · 2019-01-25 02:18

As @Richard suggested here comes the full path:

Tools > Options > Text Editor > C# > Code Style and check Qualify member access with 'this'

查看更多
登录 后发表回答