When creating a new type using the object initialiser syntax, Visual Studio automatically moves the braces to align with the type after the new keyword.
Like this
MyType myType = new MyType
{
};
However, I would prefer it not to do this and instead leave it like so
MyType myType = new MyType
{
};
Any ideas how to do this - I've been through all the Visual Studio formatting options and can't find one that is appropriate
Any ideas?
From my most popular answer here:
You will have the style that you want!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With