CSharpier 1.1.1

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.1.2 2 08/19/2025
1.1.1 5 08/04/2025
1.1.0 5 08/04/2025
1.0.3 11 07/06/2025
1.0.2 12 05/27/2025
1.0.1 32 04/28/2025
1.0.0 18 04/24/2025
1.0.0-alpha99 69 04/16/2025
1.0.0-alpha84 51 04/20/2025
1.0.0-alpha83 46 04/20/2025
1.0.0-alpha81 55 04/16/2025
1.0.0-alpha80 63 04/04/2025
1.0.0-alpha46 64 04/04/2025
1.0.0-alpha45 45 04/04/2025
1.0.0-alpha44 47 04/04/2025
1.0.0-alpha43 44 04/04/2025
1.0.0-alpha33 44 04/04/2025
1.0.0-alpha32 51 04/04/2025
1.0.0-alpha24 56 04/04/2025
1.0.0-alpha22 45 04/04/2025
1.0.0-alpha21 56 04/04/2025
1.0.0-alpha20 57 04/04/2025
1.0.0-alpha10 47 04/04/2025
0.30.6 34 04/04/2025
0.30.5 33 04/04/2025
0.30.4 35 04/04/2025
0.30.3 31 04/04/2025
0.30.2 31 04/04/2025
0.30.1 32 04/04/2025
0.30.0 31 04/04/2025
0.29.2 30 04/04/2025
0.29.1 31 04/04/2025
0.29.0 35 04/04/2025
0.28.2 37 04/04/2025
0.28.1 33 04/04/2025
0.28.0 36 04/04/2025
0.27.3 35 04/04/2025
0.27.2 31 04/04/2025
0.27.1 31 04/04/2025
0.27.0 38 04/04/2025
0.26.7 32 04/04/2025
0.26.6 32 04/04/2025
0.26.5 30 04/04/2025
0.26.4 34 04/04/2025
0.26.3 31 04/04/2025
0.26.2 33 04/04/2025
0.26.1 32 04/04/2025
0.26.0 36 04/04/2025
0.25.0 35 04/04/2025
0.24.2 36 04/04/2025
0.24.1 38 04/04/2025
0.24.0 30 04/04/2025
0.23.0 32 04/04/2025
0.22.1 31 02/19/2025
0.22.0 37 04/04/2025
0.21.0 33 04/04/2025
0.20.0 34 04/04/2025
0.19.2 34 04/04/2025
0.19.1 35 04/04/2025
0.19.0 27 04/04/2025
0.18.0 38 04/04/2025
0.17.0 36 04/04/2025
0.16.0 40 04/04/2025
0.15.1 36 04/04/2025
0.15.0 34 04/04/2025
0.14.0 33 04/04/2025
0.13.0 30 04/04/2025
0.12.0 36 04/04/2025
0.11.1 29 04/04/2025
0.10.0 32 04/04/2025
0.9.9 26 04/04/2025
0.9.8 37 04/04/2025
0.9.7 21 04/04/2025
0.9.6 37 04/04/2025
0.9.5 51 04/04/2025
0.9.4 33 04/04/2025
0.9.3 35 04/04/2025
0.9.2 37 04/04/2025
0.9.1 33 04/04/2025
0.9.0 27 04/04/2025
0.8.9 29 04/04/2025
0.8.8 37 04/04/2025
0.8.7 33 04/04/2025
0.8.6 25 04/04/2025
0.8.5 30 04/04/2025
0.8.4 32 04/04/2025
0.8.3 33 04/04/2025
0.8.2 29 04/04/2025
0.8.1 26 04/04/2025