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.1.2 7 08/23/2025
1.1.1 4 08/13/2025
1.1.0 7 08/13/2025
1.0.3 8 07/03/2025
1.0.2 11 06/06/2025
1.0.1 12 05/01/2025
1.0.0 11 04/30/2025
1.0.0-alpha99 13 05/01/2025
1.0.0-alpha9 15 02/02/2025
1.0.0-alpha84 12 05/01/2025
1.0.0-alpha83 11 04/28/2025
1.0.0-alpha81 13 05/01/2025
1.0.0-alpha80 14 04/07/2025
1.0.0-alpha7 20 02/02/2025
1.0.0-alpha6 21 01/22/2025
1.0.0-alpha46 12 02/26/2025
1.0.0-alpha45 18 03/01/2025
1.0.0-alpha44 15 03/11/2025
1.0.0-alpha43 16 03/11/2025
1.0.0-alpha33 15 02/13/2025
1.0.0-alpha32 14 02/14/2025
1.0.0-alpha24 19 02/01/2025
1.0.0-alpha22 19 02/01/2025
1.0.0-alpha21 15 02/01/2025
1.0.0-alpha20 14 02/01/2025
1.0.0-alpha10 18 02/01/2025
0.30.6 19 02/01/2025
0.30.5 20 01/06/2025
0.30.4 20 01/03/2025
0.30.3 19 12/26/2024
0.30.2 22 12/02/2024
0.30.1 18 11/30/2024
0.30.0 19 12/06/2024
0.29.2 19 01/03/2025
0.29.1 19 12/08/2024
0.29.0 18 12/01/2024
0.28.2 17 12/07/2024
0.28.1 27 06/03/2024
0.28.0 18 12/09/2024
0.27.3 17 11/28/2024
0.27.2 18 12/03/2024
0.27.1 19 12/09/2024
0.27.0 20 12/02/2024
0.26.7 20 11/29/2024
0.26.6 18 12/11/2024
0.26.5 19 12/02/2024
0.26.4 16 12/09/2024
0.26.3 22 12/01/2024
0.26.2 17 11/30/2024
0.26.1 22 12/02/2024
0.26.0 19 12/02/2024
0.25.0 22 11/14/2024
0.24.2 19 11/14/2024
0.24.1 16 12/02/2024
0.24.0 18 12/02/2024
0.23.0 21 03/31/2023
0.22.1 21 02/02/2023
0.22.0 16 12/09/2024
0.21.0 18 12/02/2024
0.20.0 16 12/09/2024
0.19.2 16 12/02/2024
0.19.1 19 12/08/2024
0.19.0 16 12/09/2024
0.18.0 17 12/02/2024
0.17.0 16 12/09/2024
0.16.0 22 12/16/2024
0.15.1 20 12/08/2024
0.15.0 22 12/16/2024
0.14.0 26 11/14/2024
0.13.0 21 12/08/2024
0.12.0 19 11/28/2024
0.11.1 20 12/02/2024
0.10.0 25 12/06/2024
0.9.9 21 12/09/2024
0.9.8 18 12/01/2024
0.9.7 19 12/01/2024
0.9.6 18 12/19/2024
0.9.5 17 11/14/2024
0.9.4 21 11/29/2024
0.9.3 18 01/01/2025
0.9.2 19 12/02/2024
0.9.1 19 11/29/2024
0.9.0 21 11/29/2024
0.8.9 18 12/08/2024
0.8.8 17 12/16/2024
0.8.7 23 12/02/2024
0.8.6 18 11/29/2024
0.8.5 18 12/02/2024
0.8.4 19 12/08/2024
0.8.3 23 12/02/2024
0.8.2 19 12/08/2024
0.8.1 18 12/12/2024