[Reformat Code] Array initializer spaces
Hello,
I have a formatting question on ReSharper 7.1.
I can't get Reformat Code to work as I expect for array initializer.
Here is how I wish my code to look like (items are idented with 2 tabs and closing brace is indented with 1 tab.
Type[] _NumericTypesArray = new Type[] {
typeof (double),
typeof (float)
};
Options > C# > Formatting Style > Brace Layout > Array and object initializer
At end of line (K&R style) puts the braces as I expect but doesn't indent
Type[] _NumericTypesArray = new Type[] {
typeof (double),
typeof (float)
};
At next line indented 2 (GNU style) indents as expected but the first brace is not right
Type[] _NumericTypesArray = new Type[]
{
typeof (double),
typeof (float)
};
Does anybody have a solution to make ReSharper work my way ?
Thanks,
Yann
Please sign in to leave a comment.