csharpier
csharpier copied to clipboard
CSharpier is an opinionated code formatter for c#.
- [ ] Check for issues closed that aren't on milestone - [ ] Run CSH-CreateRelease - [ ] Add details to ChangeLog.md. Highlight breaking changes. Cleanup ones not closed....
See #682 ``` java.io.IOException: Cannot run program "/Users/fredrikwallen/.cache/csharpier/0.17.0/dotnet-csharpier": error=2, No such file or directory ``` I believe the problem is that the directory /Users/fredrikwallen/.cache/csharpier/0.17.0 is empty, possibly because csharpier failed...
Some things that don't work yet. 1. nested directives 2. if the final else needs a specific combination, that won't be in the set 3. we don't actually look at...
```c# class ClassName { void MethodName() { if (true) { yield return nodeContainingUnnecessaryUsings is NamespaceDeclarationSyntax ? ( (NamespaceDeclarationSyntax)nodeContainingUnnecessaryUsings ).Usings.GetContainedSpan() : ( (CompilationUnitSyntax)nodeContainingUnnecessaryUsings ).Usings.GetContainedSpan(); } } } // should maybe be...
Using the following code, if you change it between TODO and !TODO for the #if's, the indentation level changes. Could we detect this somehow and make sure to use the...
Hello team, here with a feature request. In most cases, we don't want to format the whole class but certain complex parts of the code. With this in mind, it...
There are improvements that could be made to printing arguments, namely with lambdas as parameters. #669 stuck to just improving some simple cases (single arguments or parenthesized lambdas with no...
I would like using directives to be sorted with these rules: - `System` on top. - The rest sorted alphabetically. - All `using static` at the end which follows the...
There are cases where we want to keep the original formatting on arrays ```c# private static readonly char[] _Base64Code = { '.', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G',...
```c# var someGeneric____________________________________ = new DictionaryHelper< string, ModelState >() { Creator = () => new ModelStateDictionary(), Comparer = StringComparer.OrdinalIgnoreCase, SampleKeys = new string[] { "foo", "bar", "baz", "quux", "QUUX" },...