csharpier
csharpier copied to clipboard
CSharpier is an opinionated code formatter for c#.
…st expression closes #1334
**Input:** ```csharp string.Join(' ', (int[])[000000000000000000000000000000, 000000000000000000000000000000, .. Enumerable.Empty()]); ``` **Output:** ```csharp string.Join( ' ', (int[]) [ 000000000000000000000000000000, 000000000000000000000000000000, .. Enumerable.Empty(), ] ); ``` **Expected behavior:** ```csharp string.Join( ' ', (int[])...
I started working on creating subcommands. Could I get feedback for this? Is this the direction you want it to go? It would be good for me when we could...
Fixes part of #1321 With this change it should be possible to just call csharpier instead of dotnet csharpier
Currently all arguments are available to csharpier but not all of them apply depending on what you are trying to do with csharpier. Reworking the cli to use the subcommands...
Right now csharpier server appends logs to server*.log files without limits or cleanup. Perhaps on startup it should clean up any file that hasn't been touched in x days.
**Input:** ```csharp public void Method( [Attribute( Something.Other, SomethingElse.Other, Something = Value, SomeString = "String", SomeNumber = 1 )] IReadOnlyList somethingObjects, SomethingObject somethingObject) ``` **Output:** ```csharp public void Method( [Attribute( Something.Other,...
I was experimenting with method chaining, and noticed that by removing `GroupPrintedNodesPrettierStyle` and only using `GroupPrintedNodesOnLines` formatting improved in my opinion. Specifically this fixes #1298 and didn't seem to have...
I'm upgrading a project from .NET 6 to 8, and also CSharpier as part of that. Previously, we sorted using directives with `dotnet format style` and the `dotnet_separate_import_directive_groups` option in...