Consider the following line of code:
things.Add(new Thing { ID = null, Name = "a thing" });
The whitespace formatting you see there is that which I get when I type the closing ;
.
Now, if I ask Visual Studio to reformat my code, or I type a closing }
it gets reformatted:
things.Add(new Thing{ID = null, Name = "a thing"});
I prefer the first style of formatting.
I am using ReSharper 4.0 and Visual Studio 2008 SP1.
How can I get them to agree on whitespace around braces?