I'm using Resharper 4.5 and I need custom formatting of braces when writing an array or object initializer. Resharper supports some styles:
Gnu Style:
int[] array = new int[] { 1, 2, 3 }
but I need:
int[] array = new int[] { 1, 2, 3 }
Is there any way to customize this templates?
You can customize ReSharper to do just that, you'll need to do the following (All in ReSharper -> Options -> C# -> Formatting Style):
You should get the style 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