CSharpier 1.0.0-alpha81

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.5 7 01/01/2026
1.2.4 5 12/25/2025
1.2.3 9 12/16/2025
1.2.2 8 12/15/2025
1.2.1 33 11/12/2025
1.2.0 23 11/12/2025
1.1.2 50 08/19/2025
1.1.1 53 08/04/2025
1.1.0 59 08/04/2025
1.0.3 60 07/06/2025
1.0.2 68 05/27/2025
1.0.1 88 04/28/2025
1.0.0 67 04/24/2025
1.0.0-alpha99 121 04/16/2025
1.0.0-alpha84 95 04/20/2025
1.0.0-alpha83 109 04/20/2025
1.0.0-alpha81 113 04/16/2025
1.0.0-alpha80 119 04/04/2025
1.0.0-alpha46 118 04/04/2025
1.0.0-alpha45 93 04/04/2025
1.0.0-alpha44 99 04/04/2025
1.0.0-alpha43 91 04/04/2025
1.0.0-alpha33 102 04/04/2025
1.0.0-alpha32 101 04/04/2025
1.0.0-alpha24 114 04/04/2025
1.0.0-alpha22 106 04/04/2025
1.0.0-alpha21 110 04/04/2025
1.0.0-alpha20 113 04/04/2025
1.0.0-alpha10 101 04/04/2025
0.30.6 87 04/04/2025
0.30.5 94 04/04/2025
0.30.4 74 04/04/2025
0.30.3 81 04/04/2025
0.30.2 82 04/04/2025
0.30.1 85 04/04/2025
0.30.0 91 04/04/2025
0.29.2 80 04/04/2025
0.29.1 82 04/04/2025
0.29.0 79 04/04/2025
0.28.2 78 04/04/2025
0.28.1 83 04/04/2025
0.28.0 83 04/04/2025
0.27.3 81 04/04/2025
0.27.2 79 04/04/2025
0.27.1 89 04/04/2025
0.27.0 88 04/04/2025
0.26.7 77 04/04/2025
0.26.6 77 04/04/2025
0.26.5 86 04/04/2025
0.26.4 77 04/04/2025
0.26.3 78 04/04/2025
0.26.2 79 04/04/2025
0.26.1 75 04/04/2025
0.26.0 89 04/04/2025
0.25.0 86 04/04/2025
0.24.2 80 04/04/2025
0.24.1 85 04/04/2025
0.24.0 72 04/04/2025
0.23.0 77 04/04/2025
0.22.1 95 02/19/2025
0.22.0 94 04/04/2025
0.21.0 83 04/04/2025
0.20.0 85 04/04/2025
0.19.2 81 04/04/2025
0.19.1 81 04/04/2025
0.19.0 75 04/04/2025
0.18.0 93 04/04/2025
0.17.0 84 04/04/2025
0.16.0 94 04/04/2025
0.15.1 90 04/04/2025
0.15.0 84 04/04/2025
0.14.0 89 04/04/2025
0.13.0 81 04/04/2025
0.12.0 73 04/04/2025
0.11.1 80 04/04/2025
0.10.0 88 04/04/2025
0.9.9 72 04/04/2025
0.9.8 88 04/04/2025
0.9.7 73 04/04/2025
0.9.6 79 04/04/2025
0.9.5 101 04/04/2025
0.9.4 81 04/04/2025
0.9.3 80 04/04/2025
0.9.2 86 04/04/2025
0.9.1 83 04/04/2025
0.9.0 81 04/04/2025
0.8.9 79 04/04/2025
0.8.8 86 04/04/2025
0.8.7 83 04/04/2025
0.8.6 70 04/04/2025
0.8.5 71 04/04/2025
0.8.4 77 04/04/2025
0.8.3 90 04/04/2025
0.8.2 83 04/04/2025
0.8.1 78 04/04/2025