Object Initializer Layout - K&R Style
CodeEditing > C# > Formatting Style > Other
If I (already) have Braces Layout for object initializers set to K&R style, then unchecking Indent array, object and collection initializer block has no effect, so I get:
StudentName student = new StudentName {
FirstName = "John",
LastName = "Smith",
ID = 116
}
I would rather the initializers and closing brace be outdented.
Can you help?
Thank you.
Please sign in to leave a comment.
Hello Tim
This is a known problem and we will try addressing it in one of the future releases. Right now, 'K&R' style for object initializers forces them to be indented. Thank you!
Andrey Serebryansky
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"