CSharpier 1.3.0

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.3.0 8 06/10/2026
1.2.6 38 02/09/2026
1.2.5 43 01/01/2026
1.2.4 41 12/25/2025
1.2.3 36 12/16/2025
1.2.2 50 12/15/2025
1.2.1 70 11/12/2025
1.2.0 79 11/12/2025
1.1.2 89 08/19/2025
1.1.1 78 08/04/2025
1.1.0 82 08/04/2025
1.0.3 86 07/06/2025
1.0.2 96 05/27/2025
1.0.1 123 04/28/2025
1.0.0 95 04/24/2025
1.0.0-alpha99 158 04/16/2025
1.0.0-alpha84 125 04/20/2025
1.0.0-alpha83 148 04/20/2025
1.0.0-alpha81 156 04/16/2025
1.0.0-alpha80 152 04/04/2025
1.0.0-alpha46 150 04/04/2025
1.0.0-alpha45 129 04/04/2025
1.0.0-alpha44 134 04/04/2025
1.0.0-alpha43 121 04/04/2025
1.0.0-alpha33 131 04/04/2025
1.0.0-alpha32 123 04/04/2025
1.0.0-alpha24 144 04/04/2025
1.0.0-alpha22 144 04/04/2025
1.0.0-alpha21 136 04/04/2025
1.0.0-alpha20 148 04/04/2025
1.0.0-alpha10 132 04/04/2025
0.30.6 119 04/04/2025
0.30.5 125 04/04/2025
0.30.4 104 04/04/2025
0.30.3 117 04/04/2025
0.30.2 134 04/04/2025
0.30.1 121 04/04/2025
0.30.0 121 04/04/2025
0.29.2 116 04/04/2025
0.29.1 110 04/04/2025
0.29.0 109 04/04/2025
0.28.2 104 04/04/2025
0.28.1 114 04/04/2025
0.28.0 109 04/04/2025
0.27.3 109 04/04/2025
0.27.2 113 04/04/2025
0.27.1 115 04/04/2025
0.27.0 115 04/04/2025
0.26.7 105 04/04/2025
0.26.6 99 04/04/2025
0.26.5 115 04/04/2025
0.26.4 126 04/04/2025
0.26.3 111 04/04/2025
0.26.2 107 04/04/2025
0.26.1 110 04/04/2025
0.26.0 121 04/04/2025
0.25.0 126 04/04/2025
0.24.2 107 04/04/2025
0.24.1 117 04/04/2025
0.24.0 109 04/04/2025
0.23.0 102 04/04/2025
0.22.1 127 02/19/2025
0.22.0 131 04/04/2025
0.21.0 117 04/04/2025
0.20.0 113 04/04/2025
0.19.2 112 04/04/2025
0.19.1 108 04/04/2025
0.19.0 115 04/04/2025
0.18.0 125 04/04/2025
0.17.0 108 04/04/2025
0.16.0 122 04/04/2025
0.15.1 121 04/04/2025
0.15.0 113 04/04/2025
0.14.0 117 04/04/2025
0.13.0 126 04/04/2025
0.12.0 99 04/04/2025
0.11.1 105 04/04/2025
0.10.0 122 04/04/2025
0.9.9 109 04/04/2025
0.9.8 126 04/04/2025
0.9.7 117 04/04/2025
0.9.6 118 04/04/2025
0.9.5 134 04/04/2025
0.9.4 107 04/04/2025
0.9.3 109 04/04/2025
0.9.2 118 04/04/2025
0.9.1 114 04/04/2025
0.9.0 116 04/04/2025
0.8.9 114 04/04/2025
0.8.8 135 04/04/2025
0.8.7 120 04/04/2025
0.8.6 95 04/04/2025
0.8.5 101 04/04/2025
0.8.4 109 04/04/2025
0.8.3 122 04/04/2025
0.8.2 117 04/04/2025
0.8.1 108 04/04/2025