Skip to content
SPECIFICTION
Get listed

CSharpier

csharpier.com

Free plan WindowsmacOSLinuxAPI
Visit csharpier.com
Spec score 8.0 #3 of 22 in Code formatters

What it is

CSharpier is a free, open-source formatter for C# and XML. It parses source files and reprints them using its own formatting rules, with only a few basic options rather than a broad set of style switches. The homepage states support through C# version 14. Configuration can be kept in .csharpierrc JSON or YAML files or in .editorconfig, covering print width, tabs, indentation, and line endings. CSharpier runs as a .NET tool, installed for one project or globally, and CSharpier.Core provides a NuGet API for formatting from code. It can check files and returns a failing exit code by default when formatting is incorrect. Automation options include pre-commit hooks, MSBuild builds, and CI/CD workflows. Integrations are listed for Visual Studio 2022 and 2019, Visual Studio Code, Rider, Neovim, Emacs, and Zed. It runs on Windows, macOS, and Linux. Code that cannot compile produces error diagnostics instead of being formatted.

Spec sheet

Purpose
CSharpier parses C# and XML code and reprints it using its own formatting rules.Read 4 Oct 2026 · csharpier.com
Automation
CSharpier can run as a pre-commit hook, during MSBuild builds, or in CI/CD workflows.Read 4 Oct 2026 · csharpier.com
C# support
The homepage says CSharpier works with C# through version 14.Read 4 Oct 2026 · csharpier.com
Configuration
Configuration can use .csharpierrc JSON or YAML files or .editorconfig, with options including print width, tabs, indentation, and line endings.Read 4 Oct 2026 · csharpier.com
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.Read 4 Oct 2026 · csharpier.com
Formatter philosophy
It provides a few basic formatting options and says option requests are out of scope.Read 4 Oct 2026 · csharpier.com
Formatting limitation
CSharpier’s API documentation says code that cannot compile cannot be formatted and returns error diagnostics.Read 4 Oct 2026 · csharpier.com
Install options
CSharpier is implemented as a .NET tool that can be installed locally for a project or globally.Read 4 Oct 2026 · csharpier.com
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.Read 4 Oct 2026 · github.com
Programmatic API
The CSharpier.Core NuGet package exposes programmatic formatting for C# and XML.Read 4 Oct 2026 · csharpier.com
Security and compliance
The official pages opened provide no security or compliance claims.Read 4 Oct 2026 · csharpier.com
Validation
CSharpier can check whether files are formatted and reports unformatted files with a failing exit code by default.Read 4 Oct 2026 · csharpier.com

Plans and prices

Free Free Opinionated formatting for C# and XML · install as a .NET tool Read 4 Oct 2026 · csharpier.com

Every CSharpier plan and price →

Strong points and limits

Strong points

  • Free and open source
  • Supports C# through version 14
  • Runs on Windows, macOS, and Linux
  • Offers editor integrations and a library API
  • Works in CI/CD and pre-commit hooks

Limits

  • Uncompilable code cannot be formatted
  • Formatting options are intentionally limited
  • No free trial is listed

Who it suits

CSharpier suits developers who want consistent C# or XML formatting across projects, editors, and automated build workflows. It fits teams comfortable with opinionated formatting and .NET tooling.

Verdict

CSharpier provides an opinionated C# and XML formatter with broad editor and automation coverage. Its compile requirement and limited configuration matter if you need formatting for invalid code or many style controls.

Where Specifiction places it

Alternatives to CSharpierAll alternatives →