I thought you were talking about the space between the get; and set; and the brackets.


I was about to ask if you are a psycopath.
Haha nope not what i was asking! That would of been funny though
You can disable CodeLens by going to Tools -> Options -> Text Editor -> All Languages and unchecking the “Enable CodeLens” option.
You’ll get far more out of the IDE if you leave it turned on, though. Once you start using source control regularly and learn to use the debugger features, you’ll want to see the references, implementations, and definitions at a glance.
That’s not spacing. It’s only there visually, not actually in the file.
If you mean the “X references” thing: I think VS called this Code Lense, you can disable that in the options.
You better get used to it instead of disabling it.
Please name your properties properly (case).
Well it’s not the law :p
If you go into options, you can tweak all of the automatic code formatting any way you want.
But please, for the sake of others who might have to read your code, don’t.
This isn’t about automatic formatting, it’s about CodeLens as the other comments have pointed out. CodeLens automatically adds some space between lines so that “3 references” can fit in there.
That must be some amazing fruit.
C# devs
null reference exceptions

source