Skip to content
项目

belav/csharpier has 2,364 GitHub stars and 163 forks. GitHot measured 0 stars in 24 hours, +1 in 7 days, and +10 in 15 days. Last checked 2026-11-24 07:53 UTC. Last push 2026-11-21.

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
+10
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

CSharpier 是一款具有明确代码风格的 C# 代码格式化工具。

开发工具

README.md

原文

CSharpier

CSharpier is an opinionated code formatter for c# and XML. It parses 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 -g csharpier

Then format the contents of a directory and its children with the following command.

csharpier format .

CSharpier can also format on save in your editor or as a pre-commit hook. 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"
        );
    }
}

Contributing

See Development Readme

Join Us Discord

Sponsors

Thanks to the following companies for sponsoring the ongoing development of CSharpier.

.NET on AWS Open Source Software Fund

Fern

And a huge thanks to all the others who sponsor the project through Github sponsors

探索相关项目

加载中…