Braces layout for shorthand array initialiser
Code Editing > C# > Formatting Style > Braces Layout > Array and Object Initializer
I am using the option "At next line indented 2 (GNU Style)".
This works for the following Array Initialiser:
private static readonly string[] TestArray = new[]
{
"a", "b", "c", "d"
};
However when I try to use the shorthand version of the array initialiser, Resharper does not use the same formatting:
private static readonly string[] TestArray = {
"a", "b", "c", "d"
};
How can I make Resharper format the shorthand version the same as the long version?
---
Original message URL: http://devnet.jetbrains.net/message/5462135#5462135
Please sign in to leave a comment.