csharpier
csharpier copied to clipboard
CSharpier is an opinionated code formatter for c#.
Currently a generic property will break like this ```c# public virtual ICollection< SomeObject > SomeLongNameThatForcesALineBreak { get; set; } = new HashSet(); ``` Which is modeled after how prettier breaks...
I think we should consider breaking before the operator for the following statements. ```c# public void Serialize(ReadOnlySpan value) => InternalSerialize(Encoding.Utf8.GetString(value)); var someReallyLongName = "someReallyLongValueThatBreaks11111111111111111111111111111111"; ``` As compared to ```c# public...
This is more of a nice to have. Prettier currently doesn't deal with this. ```c# var someVariable___________________________ = CallSomeMethod( someLongValue, someOtherLongValue ); // should prefer to break this way if...
Prettier has code to deal with a string's width not necessarily being the same as the visual "printed" width. See https://github.com/prettier/prettier/blob/main/src/common/util.js for how prettier does it. A method was abstracted...
Right now when using the CSharpier.MSBuild package, when dotnet watch is used it reformats the entire project instead of just the files that were changed. This can be used in...
When using CSharpier.MsBuild in a solution with multiple projects often those projects will be formatted at the same time. The CSharpier cache reads a single file when it starts up,...
Hello all! After reading the [configuration document](https://csharpier.com/docs/Configuration) - I do not think this is possible, but I still wanted to ask.  The goal is: * I do not want...
If this is possible, we'd get a lot of benefits: - C# integration via the C# extension itself - We might not need anything special for MSBuild - Possible support...
e.g. methods like ````cs public override async Task Method1() {...} async public override Task Method1() {...} ```` are equivalent It'd be nice to have first visibility and last async, or...
Hey! Good morning 😄 I've installed the tool globally and the Rider extension for it. However, when i open Rider, it keeps asking for me to install it anyways. When...