← All recipes
Moderne licensed

Add newline after opening brace

Recipe IDOpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddNewLineAfterOpeningBraceArtifactOpenRewrite.Recipes.CSharp.CodeQuality

Add newline after opening brace so the first statement starts on its own line.

Single recipecsharpcode-qualityProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe OpenRewrite.Recipes.CSharp.CodeQuality.Formatting.AddNewLineAfterOpeningBrace

If the recipe isn’t available locally, install it with:

mod config recipes nuget install OpenRewrite.Recipes.CSharp.CodeQuality