CSharpier 1.0.0-alpha83

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.2.1 16 11/12/2025
1.2.0 14 11/12/2025
1.1.2 39 08/19/2025
1.1.1 47 08/04/2025
1.1.0 51 08/04/2025
1.0.3 54 07/06/2025
1.0.2 58 05/27/2025
1.0.1 79 04/28/2025
1.0.0 60 04/24/2025
1.0.0-alpha99 113 04/16/2025
1.0.0-alpha84 89 04/20/2025
1.0.0-alpha83 100 04/20/2025
1.0.0-alpha81 103 04/16/2025
1.0.0-alpha80 112 04/04/2025
1.0.0-alpha46 111 04/04/2025
1.0.0-alpha45 84 04/04/2025
1.0.0-alpha44 89 04/04/2025
1.0.0-alpha43 84 04/04/2025
1.0.0-alpha33 94 04/04/2025
1.0.0-alpha32 95 04/04/2025
1.0.0-alpha24 106 04/04/2025
1.0.0-alpha22 96 04/04/2025
1.0.0-alpha21 99 04/04/2025
1.0.0-alpha20 103 04/04/2025
1.0.0-alpha10 92 04/04/2025
0.30.6 79 04/04/2025
0.30.5 81 04/04/2025
0.30.4 68 04/04/2025
0.30.3 75 04/04/2025
0.30.2 71 04/04/2025
0.30.1 77 04/04/2025
0.30.0 81 04/04/2025
0.29.2 73 04/04/2025
0.29.1 76 04/04/2025
0.29.0 72 04/04/2025
0.28.2 70 04/04/2025
0.28.1 76 04/04/2025
0.28.0 75 04/04/2025
0.27.3 75 04/04/2025
0.27.2 73 04/04/2025
0.27.1 72 04/04/2025
0.27.0 81 04/04/2025
0.26.7 68 04/04/2025
0.26.6 71 04/04/2025
0.26.5 78 04/04/2025
0.26.4 70 04/04/2025
0.26.3 71 04/04/2025
0.26.2 73 04/04/2025
0.26.1 65 04/04/2025
0.26.0 79 04/04/2025
0.25.0 80 04/04/2025
0.24.2 73 04/04/2025
0.24.1 78 04/04/2025
0.24.0 65 04/04/2025
0.23.0 70 04/04/2025
0.22.1 82 02/19/2025
0.22.0 86 04/04/2025
0.21.0 75 04/04/2025
0.20.0 75 04/04/2025
0.19.2 73 04/04/2025
0.19.1 74 04/04/2025
0.19.0 66 04/04/2025
0.18.0 79 04/04/2025
0.17.0 78 04/04/2025
0.16.0 83 04/04/2025
0.15.1 77 04/04/2025
0.15.0 79 04/04/2025
0.14.0 82 04/04/2025
0.13.0 74 04/04/2025
0.12.0 67 04/04/2025
0.11.1 73 04/04/2025
0.10.0 80 04/04/2025
0.9.9 65 04/04/2025
0.9.8 80 04/04/2025
0.9.7 64 04/04/2025
0.9.6 72 04/04/2025
0.9.5 93 04/04/2025
0.9.4 70 04/04/2025
0.9.3 74 04/04/2025
0.9.2 80 04/04/2025
0.9.1 76 04/04/2025
0.9.0 74 04/04/2025
0.8.9 70 04/04/2025
0.8.8 77 04/04/2025
0.8.7 75 04/04/2025
0.8.6 65 04/04/2025
0.8.5 64 04/04/2025
0.8.4 70 04/04/2025
0.8.3 83 04/04/2025
0.8.2 72 04/04/2025
0.8.1 71 04/04/2025