SSW.EditorConfig

March 3, 2023 ยท View on GitHub

Overview

Best practice .editorconfig file for .NET development.

Defaults from dotnet new editorconfig have been merged with defaults from VS2019.

Then most rules have been elevated into warnings, but lowered some to suggestions.

Setup

  1. Copy .editorconfig into the root of your repository
  2. Copy Directory.Build.Props into the root of your repository (this will treat warnings as errors in Release mode - typically your CICD pipeline)

Script

Alternatively, copy & paste this script in a Terminal, inside the root directory of your project:

. { iwr -useb "https://raw.githubusercontent.com/SSWConsulting/SSW.EditorConfig/main/install.ps1" } | iex

Resources