Skip to main content
Any Framework

C# formatter with width-aware reflow while honouring the full IDE0055 .editorconfig option surface.

Published
Nov 20, 2026
2d ago
Total Downloads
7.4K
7,429

Install

dotnet add package curb-cli.linux-arm64 --version 0.16.1

No framework information available.

README

curb-cli

Curb

A C# formatter that reads your .editorconfig, all of it, and reflows code to a line width the way Prettier does. This is the curb command line tool.

NuGet

curb format on an untidy C# file: the file before, curb's report, and the file after

Install

dotnet tool install -g curb-cli

Ships as a native-AOT binary per platform (linux-x64, linux-arm64, win-x64, win-arm64, osx-arm64), with a portable fallback. About 10 ms startup.

Quick start

curb format ./src          # format in place
curb check ./src           # exit 1 if anything would change
curb print-config Foo.cs   # show every resolved option and its source

For code style rules that need a compilation (unused usings, var, naming), run a build first and let Curb read what it reported:

dotnet build && curb cleanup

curb rules lists what Curb fixes and what it leaves to dotnet format style, and curb options lists the .editorconfig keys it implements.

Curb honours the complete set of .NET formatting options (IDE0055) with Roslyn's defaults, so it agrees with Visual Studio and Rider out of the box; max_line_length opts into reflow on top. With Fantomas in your tool manifest, curb format and curb check cover F# files too.

Learn more

Changes from Previous Version

No structural changes between v0.16.0 and v0.16.1.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.