format
format copied to clipboard
Line wrapping and indentation of Collection Literals
Output of running dotnet format
with default config:
class Foo { }
class Program
{
public static void Main()
{
List<List<Foo>> list = [[
new Foo(),
new Foo(),
new Foo(),
],
[
new Foo(),
new Foo(),
],
];
Console.WriteLine($"Hello {list}");
}
}
Just for some inspiration, the same program in dart:
class Foo {}
void main() {
List<List<Foo>> list = [
[
Foo(),
Foo(),
Foo(),
],
[
Foo(),
Foo(),
],
];
print('Hello ${list}');
}