CSharpier
csharpier.com
- Free plan
- Windows
- macOS
- Linux
- API
What CSharpier is
CSharpier formats C# and XML by parsing code and reprinting it according to its own rules. It is a free, open-source .NET tool for Windows, macOS, and Linux, installable for a project or globally. Its formatting approach is opinionated: configuration covers basics such as print width, tabs, indentation, and line endings, while requests for additional options are out of scope. Configuration can go in .csharpierrc JSON or YAML files or in .editorconfig. CSharpier supports C# through version 14 and can check whether files are formatted, returning a failing exit code by default when they are not. It can run as a pre-commit hook, during MSBuild builds, or in CI/CD workflows. Listed editor extensions or plugins include Visual Studio 2022 and 2019, Visual Studio Code, and Rider; setup information also covers Neovim, Emacs, and Zed. The CSharpier.Core NuGet package exposes formatting through a programmatic API for C# and XML. Code that cannot compile cannot be formatted and returns error diagnostics.
Who it suits
CSharpier suits C# and XML developers who want consistent formatting with a limited set of configuration choices. It can also fit build and CI workflows or applications that need a formatting API.
Good to know, and what to watch
- Formats C# through version 14 and XML.
- Install locally or globally as a .NET tool.
- Can check formatting and fail on unformatted files.
- Runs in pre-commit, MSBuild, and CI/CD workflows.
- Offers editor integrations and a programmatic API.
- Additional formatting option requests are out of scope.
- Code that cannot compile cannot be formatted.
- A small set of formatting options is available.
Plans
Every plan and priceFree
Open source
The verdict
CSharpier provides automated C# and XML formatting across common editor and build workflows. Its fixed formatting approach and inability to format non-compiling code are important constraints to weigh.
What the maker publishes
- Automation
- CSharpier can run as a pre-commit hook, during MSBuild builds, or in CI/CD workflows. source
- Configuration
- Configuration can use .csharpierrc JSON or YAML files or .editorconfig, with options including print width, tabs, indentation, and line endings. source
- C# support
- The homepage says CSharpier works with C# through version 14. source
- Editor integrations
- Official extensions or plugins are listed for Visual Studio 2022, Visual Studio 2019, Visual Studio Code, and Rider; the page also describes setups for Neovim, Emacs, and Zed. source
- Formatter philosophy
- It provides a few basic formatting options and says option requests are out of scope. source
- Formatting limitation
- CSharpier’s API documentation says code that cannot compile cannot be formatted and returns error diagnostics. source
- Install options
- CSharpier is implemented as a .NET tool that can be installed locally for a project or globally. source
- Maker identity
- The project links to a public GitHub repository under the belav account; the official site does not identify a company headquarters or founding date. source
- Programmatic API
- The CSharpier.Core NuGet package exposes programmatic formatting for C# and XML. source
- Purpose
- CSharpier parses C# and XML code and reprints it using its own formatting rules. source
- Security and compliance
- The official pages opened provide no security or compliance claims. source
- Validation
- CSharpier can check whether files are formatted and reports unformatted files with a failing exit code by default. source
Checked against the maker's pages on 4 Oct 2026.