16

how can i prevent visual studio 2015 quick actions to suggest me the "remove 'this' qualitfication" to simlify the name? i don't want to disable the quick actions itself, just this hint. i cant find any settings in the options. i've already tried a few settings.

this is the message i'm talking about:

enter image description here

hope you can help, its driving me crazy.

cyptus
  • 3,346
  • 3
  • 31
  • 52
  • Possible duplicate of [Visual Studio 2015 - Change Light Bulb, Quick Action settings](http://stackoverflow.com/questions/31563049/visual-studio-2015-change-light-bulb-quick-action-settings) – Jeroen van Langen Feb 21 '17 at 09:47

2 Answers2

16

just found the solution! you have to check the following checkbox: tools -> options -> text editor -> c# -> code style -> qualify member access with 'this'

enter image description here

cyptus
  • 3,346
  • 3
  • 31
  • 52
3

In addition to cyptus answer, Visual Studio 2017, allows different actions to be taken when using this and other supported keywords.

enter image description here

knoxgon
  • 1,070
  • 2
  • 15
  • 31