chrisxfire
chrisxfire

Reputation: 635

Visual Studio: Code Cleanup ignoring "Add 'this' or 'Me' qualification' fixer

In Visual Studio 17.3, I have "Add 'this' or 'Me' qualification" in my included fixers for Profile 1. However, when I run code cleanup, this fixer is not applied.

enter image description here

I have tried removing the fixer and re-adding it and restarting Visual Studio with no luck. What am I missing?

Upvotes: 3

Views: 827

Answers (2)

Priyanku
Priyanku

Reputation: 77

For me it was fixed by setting "this.preferences" in

Tools > Options > Text Editor > C# > Code-style > General

enter image description here

Upvotes: 0

M. Khalil
M. Khalil

Reputation: 41

I had the same problem just minutes ago. I reached this question for an answer, and didn't find one.

for a last resort.

At Visual Studio menu, Tools > Options > Text Editor > C# > Code-style > General, and updated my preferences. (it was already set, when I was facing that problem).

and here is what I have done as a change

generate .editorconfig file from settings.

and voila, problem solved for me.

Upvotes: 1

Related Questions