dotnet format

The dotnet command that applies the repository's EditorConfig style and analyzer fixes to code.

In more detail

It reads the same EditorConfig settings as the editor and the build. Developers run it locally to fix formatting; continuous integration runs dotnet format --verify-no-changes, which fails without rewriting anything.

Example

dotnet format --verify-no-changes

Related terms

Taught in

References