Blah blah = new Blah
{
Foo = foo,
Bar = bar
};
I've experimented with the various options and the closest I can get is the braces aligned on the constructor:
Blah blah = new Blah
Blah blah = new Blah
{
Foo = foo,
Bar = bar
};
I've experimented with the various options and the closest I can get is the braces aligned on the constructor:
Blah blah = new Blah
Blah blah = new Blah
{
Foo = foo,
Bar = bar
};
I've experimented with the various options and the closest I can get is the braces aligned on the constructor:
Blah blah = new Blah
Whas this bug fixed?
I really would like to have my constructor like:
StudentName student = new StudentName {
FirstName = "John",
LastName = "Smith",
ID = 116
};
1) To format as in first topic message, go to Braces Layout -> Braces Layout -> Array and object initializer and set it to "At next line (BSD style)".
2) To format as in your sample, set the same parameter to "At end of line (K&R style)" and uncheck Others -> Align Multiline Constructs -> Array, object and collection initializer.