Skip to main content


An Opinionated Code Formatter

Get started

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.

Why adopt CSharpier?

  • It is fast.
  • Provides a single option to debate - width
  • Integrates with the major c# IDEs
  • Works with c# <= 12
  • Supports validating the changes it makes.