cs-fmt 0.1.0-alpha.4

This is a prerelease version of cs-fmt.
dotnet tool install --global cs-fmt --version 0.1.0-alpha.4
                    
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 cs-fmt --version 0.1.0-alpha.4
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=cs-fmt&version=0.1.0-alpha.4&prerelease
                    
nuke :add-package cs-fmt --version 0.1.0-alpha.4
                    

cs-fmt is a configurable C# code formatter that respects your .editorconfig settings. Fork of CSharpier.

Supported .editorconfig Settings

Setting Values Effect
csharp_new_line_before_open_brace none K&R brace style
csharp_prefer_braces true Mandatory braces
dotnet_style_require_accessibility_modifiers omit_if_default Remove redundant modifiers
csharp_style_namespace_declarations file_scoped File-scoped namespaces

Quick Start

dotnet tool install cs-fmt -g
cs-fmt format .

Before

namespace MyApp
{
    internal class Program
    {
        private void DoWork()
        {
            if (condition)
                Execute();
        }
    }
}

After (with .editorconfig above)

namespace MyApp;

class Program {
    void DoWork() {
        if (condition) {
            Execute();
        }
    }
}
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.1.0-alpha.4 88 3/10/2026
0.1.0-alpha.3 85 3/10/2026
0.1.0-alpha.2 80 3/10/2026