CSharpier 1.0.0-alpha10

This is a prerelease version of CSharpier.
There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global CSharpier --version 1.0.0-alpha10
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local CSharpier --version 1.0.0-alpha10
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CSharpier&version=1.0.0-alpha10&prerelease
                    
nuke :add-package CSharpier --version 1.0.0-alpha10
                    

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"
        );
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.2.6 179,878 2/6/2026
1.2.5 278,565 12/31/2025
1.2.4 47,065 12/23/2025
1.2.3 87,144 12/14/2025
1.2.2 18,289 12/13/2025
1.2.1 412,041 11/10/2025
1.2.0 29,765 11/10/2025
1.1.2 1,072,211 8/16/2025
1.1.1 127,628 8/4/2025
1.1.0 8,255 8/3/2025
1.0.3 409,250 6/29/2025
1.0.2 388,965 5/24/2025
1.0.1 352,131 4/26/2025
1.0.0 108,953 4/22/2025
1.0.0-alpha99 322 4/13/2025
1.0.0-alpha84 177 4/19/2025
1.0.0-alpha83 163 4/19/2025
1.0.0-alpha81 273 4/13/2025
1.0.0-alpha80 192 3/15/2025
1.0.0-alpha10 890 1/20/2025
Loading failed