For me it was fixed by setting "this.preferences" in
Tools > Options > Text Editor > C# > Code-style > General