[1228] Formatting of Object Initialization incorrect
The closing '}' is indented too far when you are two levels deep.
Results with "Place simple array, object and collection on single line -- unchecked":
var sd = new SynchronizedDictionary<string, string>(Strings)
{
{
"hello", "world"
},
{
"goodbye", "world"
},
{
"wakeup", "world"
}
};
Expected:
var sd = new SynchronizedDictionary<string, string>(Strings)
{
{
"hello", "world"
},
{
"goodbye", "world"
},
{
"wakeup", "world"
}
};
Would like to have :-)
var sd = new SynchronizedDictionary<string, string>(Strings)
{
{ "hello", "world" },
{ "goodbye", "world" },
{ "wakeup", "world" }
};
Currently possible with "Place simple array, object and collection on single line -- checked":
var sd = new SynchronizedDictionary<string, string>(Strings)
{ { "hello", "world" }, { "goodbye", "world" }, { "wakeup", "world" } };
Please sign in to leave a comment.
Jhon Honce wrote:
+1 for such feature.
--
by Peter Sulek at 7. 4. 2009 11:29:51
XanaNews 1.18.1.6
Hello Jhon,
Thanks for your feedback. The corresponding JIRA request has been created,
and you are welcome to monitor its status at http://www.jetbrains.net/jira/browse/RSRP-102914
You may want to check our request tracking policy here: http://www.jetbrains.net/confluence/display/ReSharper/ReSharperIssueTracker
It's bug, it's shouldn't be so. We'll fix it obligatory.
Best regards,
Olga