dotnet / dotnet/format

Line wrapping and indentation of Collection Literals

Open
#2,174 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

Output of running `dotnet format` with default config:

```csharp
class Foo { }

class Program
{
public static void Main()
{

List> list = [[
new Foo(),
new Foo(),
new Foo(),
],
[
new Foo(),
new Foo(),
],
];

Console.WriteLine($"Hello {list}");
}
}
```

Just for some inspiration, the same program in dart:

```dart
class Foo {}

void main() {
List> list = [
[
Foo(),
Foo(),
Foo(),
],
[
Foo(),
Foo(),
],
];

print('Hello ${list}');
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.