csfmt 2.1.0-rc.2

This is a prerelease version of csfmt.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet tool install --global csfmt --version 2.1.0-rc.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local csfmt --version 2.1.0-rc.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=csfmt&version=2.1.0-rc.2&prerelease
                    
nuke :add-package csfmt --version 2.1.0-rc.2
                    

NuGet NuGet

Performance-aimed CLI tool for formatting and metrics of C# source code.

dotnet tool install -g csfmt  # .NET 10+ is required
csfmt .  # format all C# files in current and sub directories

Third Party License

CLI Options

csfmt 2.1.0-rc.2

Usage: csfmt [options] paths...

    paths...              C# source file, folder, or glob pattern (ex. "src/**/*.cs")
                            '\' in glob pattern is treated as a directory separator
    --concurrency <0..1>  Scale parallelism by CPU count (default: 1.0)
    --help                Show this help
    --version             Show version

    --check               List files that would change without modifying them
                            Exit with non-zero if format or syntactic error found
    --unused              List unused members
    --loc <1..>           List members with lines of code greater than or equal to
                            Blank and readability adjustment lines are excluded
                            Multiline string literals are collapsed to 1

    --strict              Format with `dotnet format` command (folder only)
    --jb=before|after     Format with `JetBrains.ReSharper.GlobalTools` (folder only)
    --rm-comments S C     Remove comments that contain either (disabled by default)
                            S = Number of semicolons (>= 0)
                            C = Number of commas     (>= 0)
                            Zero to remove all source code comments

    --config              Show resolved config and file paths
    --discover            Preview discovered and ignored files and folders

Config (.editorconfig)

    root = true           Prevent directory traversal upwards
    charset = utf-8-bom   Add UTF-8 byte order mark (otherwise use UTF-8 w/o BOM)
    end_of_line = crlf    NOT yet supported (always normalized to LF)
There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.1.0-rc.4 0 11/28/2026
2.1.0-rc.3 0 11/28/2026
2.1.0-rc.2 45 11/28/2026
2.1.0-rc.1 61 11/26/2026
2.0.0 98 11/23/2026
2.0.0-rc.1 68 11/23/2026
1.9.9 133 10/21/2026
1.9.8 126 10/21/2026
1.9.7 137 10/20/2026
1.9.6 141 10/20/2026
1.9.5 122 10/20/2026
1.9.4 123 10/20/2026
1.9.3 129 10/20/2026
1.9.3-rc.1 105 10/20/2026
1.9.2 122 10/20/2026
1.9.1 117 10/20/2026
1.9.0 117 10/19/2026
1.8.9 114 10/18/2026
1.8.8 115 10/16/2026
1.8.7 107 10/16/2026
Loading failed