CSharpier 1.0.0-alpha99

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.

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.


Read the documentation

Try it out


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
1.0.2 5 05/27/2025
1.0.1 21 04/28/2025
1.0.0 10 04/24/2025
1.0.0-alpha99 21 04/16/2025
1.0.0-alpha84 24 04/20/2025
1.0.0-alpha83 22 04/20/2025
1.0.0-alpha81 27 04/16/2025
1.0.0-alpha80 30 04/04/2025
1.0.0-alpha46 35 04/04/2025
1.0.0-alpha45 24 04/04/2025
1.0.0-alpha44 25 04/04/2025
1.0.0-alpha43 24 04/04/2025
1.0.0-alpha33 23 04/04/2025
1.0.0-alpha32 25 04/04/2025
1.0.0-alpha24 25 04/04/2025
1.0.0-alpha22 24 04/04/2025
1.0.0-alpha21 25 04/04/2025
1.0.0-alpha20 26 04/04/2025
1.0.0-alpha10 18 04/04/2025
0.30.6 28 04/04/2025
0.30.5 25 04/04/2025
0.30.4 27 04/04/2025
0.30.3 24 04/04/2025
0.30.2 23 04/04/2025
0.30.1 22 04/04/2025
0.30.0 24 04/04/2025
0.29.2 23 04/04/2025
0.29.1 23 04/04/2025
0.29.0 28 04/04/2025
0.28.2 28 04/04/2025
0.28.1 26 04/04/2025
0.28.0 28 04/04/2025
0.27.3 26 04/04/2025
0.27.2 24 04/04/2025
0.27.1 24 04/04/2025
0.27.0 28 04/04/2025
0.26.7 24 04/04/2025
0.26.6 25 04/04/2025
0.26.5 22 04/04/2025
0.26.4 26 04/04/2025
0.26.3 23 04/04/2025
0.26.2 25 04/04/2025
0.26.1 25 04/04/2025
0.26.0 29 04/04/2025
0.25.0 27 04/04/2025
0.24.2 28 04/04/2025
0.24.1 27 04/04/2025
0.24.0 22 04/04/2025
0.23.0 24 04/04/2025
0.22.1 20 02/19/2025
0.22.0 28 04/04/2025
0.21.0 26 04/04/2025
0.20.0 25 04/04/2025
0.19.2 27 04/04/2025
0.19.1 28 04/04/2025
0.19.0 19 04/04/2025
0.18.0 32 04/04/2025
0.17.0 28 04/04/2025
0.16.0 33 04/04/2025
0.15.1 27 04/04/2025
0.15.0 27 04/04/2025
0.14.0 25 04/04/2025
0.13.0 22 04/04/2025
0.12.0 28 04/04/2025
0.11.1 21 04/04/2025
0.10.0 22 04/04/2025
0.9.9 19 04/04/2025
0.9.8 28 04/04/2025
0.9.7 13 04/04/2025
0.9.6 28 04/04/2025
0.9.5 28 04/04/2025
0.9.4 25 04/04/2025
0.9.3 28 04/04/2025
0.9.2 27 04/04/2025
0.9.1 23 04/04/2025
0.9.0 21 04/04/2025
0.8.9 21 04/04/2025
0.8.8 28 04/04/2025
0.8.7 25 04/04/2025
0.8.6 18 04/04/2025
0.8.5 23 04/04/2025
0.8.4 26 04/04/2025
0.8.3 24 04/04/2025
0.8.2 21 04/04/2025
0.8.1 19 04/04/2025