Fork of the CSharpier project with the K&R Style (opening brace on the same line, rather than on the next line).
Unfortunately you'll have to compile this by yourself. With dotnet SDK set up, it shouldn't be too hard.
dotnet pack ./Src/CSharpier.Cli/CSharpier.Cli.csproj -c Release -o distYour binaries should be available in Src/CSharpier.Cli/bin/Release/net8.0 (and net9.0)
Running CSharpier.exe format . formats a whole dir.
After compiling your own binary, install the vehmloewff.custom-format extension (which allows you to run any command to format code)
public class ClassName {
public void CallMethod() {
this.LongUglyMethod("1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
}
}public class ClassName {
public void CallMethod() {
this.LongUglyMethod(
"1234567890",
"abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
);
}
}public class ClassName
{
public void CallMethod()
{
this.LongUglyMethod(
"1234567890",
"abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
);
}
}Thanks to the following companies for sponsoring the ongoing development of CSharpier.
.NET on AWS Open Source Software Fund

And a huge thanks to all the others who sponsor the project through Github sponsors