CSharpier 0.30.2
CSharpier is an opinionated code formatter for c#. It uses Roslyn to parse your code and re-prints it using its own rules. The printing process was ported from prettier but has evolved over time.
CSharpier provides a few basic options that affect formatting and has no plans to add more. It follows the Option Philosophy of prettier.
Quick Start
Install CSharpier globally using the following command.
dotnet tool install csharpier -g
Then format the contents of a directory and its children with the following command.
dotnet csharpier .
CSharpier can also format on save in your editor, as a pre-commit hook, as part of your build or even programatically. Then you can ensure code was formatted with a CI/CD tool.
Before
public class ClassName {
public void CallMethod() {
this.LongUglyMethod("1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ");
}
}
After
public class ClassName
{
public void CallMethod()
{
this.LongUglyMethod(
"1234567890",
"abcdefghijklmnopqrstuvwxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZ"
);
}
}
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
0.30.3 | 0 | 12/07/2024 |
0.30.2 | 7 | 12/02/2024 |
0.30.1 | 3 | 11/30/2024 |
0.30.0 | 3 | 12/06/2024 |
0.29.2 | 0 | 09/15/2024 |
0.29.1 | 2 | 12/08/2024 |
0.29.0 | 3 | 12/01/2024 |
0.28.2 | 3 | 12/07/2024 |
0.28.1 | 10 | 06/03/2024 |
0.28.0 | 2 | 12/09/2024 |
0.27.3 | 3 | 11/28/2024 |
0.27.2 | 3 | 12/03/2024 |
0.27.1 | 2 | 12/09/2024 |
0.27.0 | 5 | 12/02/2024 |
0.26.7 | 3 | 11/29/2024 |
0.26.6 | 3 | 12/11/2024 |
0.26.5 | 5 | 12/02/2024 |
0.26.4 | 2 | 12/09/2024 |
0.26.3 | 5 | 12/01/2024 |
0.26.2 | 3 | 11/30/2024 |
0.26.1 | 6 | 12/02/2024 |
0.26.0 | 5 | 12/02/2024 |
0.25.0 | 5 | 11/14/2024 |
0.24.2 | 6 | 11/14/2024 |
0.24.1 | 3 | 12/02/2024 |
0.24.0 | 4 | 12/02/2024 |
0.23.0 | 9 | 03/31/2023 |
0.22.1 | 7 | 02/02/2023 |
0.22.0 | 2 | 12/09/2024 |
0.21.0 | 4 | 12/02/2024 |
0.20.0 | 3 | 12/09/2024 |
0.19.2 | 4 | 12/02/2024 |
0.19.1 | 1 | 12/08/2024 |
0.19.0 | 3 | 12/09/2024 |
0.18.0 | 4 | 12/02/2024 |
0.17.0 | 1 | 12/09/2024 |
0.16.0 | 4 | 12/16/2024 |
0.15.1 | 2 | 12/08/2024 |
0.15.0 | 2 | 12/16/2024 |
0.14.0 | 5 | 11/14/2024 |
0.13.0 | 2 | 12/08/2024 |
0.12.0 | 3 | 11/28/2024 |
0.11.1 | 4 | 12/02/2024 |
0.10.0 | 2 | 12/06/2024 |
0.9.9 | 2 | 12/09/2024 |
0.9.8 | 3 | 12/01/2024 |
0.9.7 | 5 | 12/01/2024 |
0.9.6 | 3 | 12/19/2024 |
0.9.5 | 3 | 11/14/2024 |
0.9.4 | 5 | 11/29/2024 |
0.9.3 | 0 | 05/18/2021 |
0.9.2 | 4 | 12/02/2024 |
0.9.1 | 5 | 11/29/2024 |
0.9.0 | 3 | 11/29/2024 |
0.8.9 | 2 | 12/08/2024 |
0.8.8 | 3 | 12/16/2024 |
0.8.7 | 4 | 12/02/2024 |
0.8.6 | 3 | 11/29/2024 |
0.8.5 | 4 | 12/02/2024 |
0.8.4 | 2 | 12/08/2024 |
0.8.3 | 3 | 12/02/2024 |
0.8.2 | 2 | 12/08/2024 |
0.8.1 | 3 | 12/12/2024 |