# csharpier **Repository Path**: BinGo2019/csharpier ## Basic Information - **Project Name**: csharpier - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-22 - **Last Updated**: 2025-12-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![CSharpier](./banner.svg) 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](https://github.com/prettier/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](https://prettier.io/docs/en/option-philosophy.html) of prettier. ### Quick Start Install CSharpier globally using the following command. ```bash dotnet tool install csharpier -g ``` Then format the contents of a directory and its children with the following command. ```bash csharpier format . ``` CSharpier can also format [on save in your editor](https://csharpier.com/docs/Editors) or as a [pre-commit hook](https://csharpier.com/docs/Pre-commit). Then you can ensure code was formatted with a [CI/CD tool](https://csharpier.com/docs/ContinuousIntegration). --- [Read the documentation](https://csharpier.com) [Try it out](https://playground.csharpier.com) --- ### Before ```c# public class ClassName { public void CallMethod() { this.LongUglyMethod("1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ"); } } ``` ### After ```c# public class ClassName { public void CallMethod() { this.LongUglyMethod( "1234567890", "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ); } } ``` ## Contributing See [Development Readme](CONTRIBUTING.md) Join Us [![Discord](https://img.shields.io/badge/Discord-chat?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/HfAKGEZQcX) ## Sponsors Thanks to the following companies for sponsoring the ongoing development of CSharpier. [.NET on AWS Open Source Software Fund](https://github.com/aws/dotnet-foss) \ \ [](https://github.com/aws/dotnet-foss) [Fern](https://buildwithfern.com/) \ \ []((https://buildwithfern.com/)) And a huge thanks to all the others who sponsor the project through [Github sponsors](https://github.com/sponsors/belav)