csharpier
csharpier copied to clipboard
CSharpier is an opinionated code formatter for c#.
**Input:** ```cs List list = [.. attribute.Targets.Select(target => KeyValuePair.Create(target, context.EntityDefinitions.TryGetValue(target, out var type) ? type.ClassName : null)).Where(kvp => kvp.Value != null)]; ``` **Output:** ```cs List list = [ .. attribute.Targets.Select(target...
The current behavior looks kinda wrong. But indenting a single time like 2 looks worse. I think going with 3 and 4 would make sense, I believe we have other...
**Input:** ```C# var fillingProgress = calculator.Calculate( """ { "TextField": "", "NumberField": "", "DateRangeField": "", "TimeField": "", "RadioGroupField": "", "DropdownField": "", "CheckBoxField": "", "CheckBoxGroupField": "", "TagInputField": "", "FileField": "", "Weight": "",...
closes #1168
**Input:** using static System.IO.Path; using static PrivateMcNamespace; **Output:** using static PrivateMcNamespace; using static System.IO.Path; **Expected behavior:** using static System.IO.Path; using static PrivateMcNamespace;
**Input 1:** ```csharp using A = string; using B = string; using C = string; using D = string; ``` **Output 1:** ```csharp using D = string; using C =...
I'm creating a wrapper plugin for integrating Csharpier with [dprint](https://dprint.dev), but I've hit a snag as the Csharpier.Core package only exposes CodeFormatterOptions, which currently only contains the setting for PrintWidth....
closes #1114 references #893
Feature request to add spacing after a file header that may include copyright information. In my case, the file header is generated by the [StyleCop.Analyzers package](https://www.nuget.org/packages/StyleCop.Analyzers) and [may be configured](https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/Configuration.md)....