How configure Visual Studio to format code like :
var obj = new Class1 {
Property1 = 42,
Property2 = "Some value",
Property3 = new Class2 {
Property1 = 7777,
Property2 = "Other value"
}
}
When Visual Studio auto format, it give :
var obj = new Class1
{
Property1 = 42,
Property2 = "Some value",
Property3 = new Class2
{
Property1 = 7777,
Property2 = "Other value"
}
}
The curly bracket is put on a new line.