dotnet-editorconfig

Installation
SKILL.md

dotnet-editorconfig

Comprehensive guide to configuring .NET code analysis rules via .editorconfig and global AnalyzerConfig files. Covers code style rules (IDE*), code quality rules (CA*), severity levels, AnalysisLevel, EnforceCodeStyleInBuild, directory hierarchy precedence, and .globalconfig files.

Scope boundary: This skill covers configuring and tuning analyzer rules. For adding analyzer packages to a project, see [skill:dotnet-add-analyzers]. For authoring custom analyzers, see [skill:dotnet-roslyn-analyzers]. For project-level build configuration (Directory.Build.props, solution layout), see [skill:dotnet-project-structure].

Cross-references: [skill:dotnet-add-analyzers] for adding analyzer packages and AnalysisLevel setup, [skill:dotnet-roslyn-analyzers] for authoring custom analyzers, [skill:dotnet-project-structure] for Directory.Build.props and solution layout, [skill:dotnet-csharp-coding-standards] for naming and formatting conventions enforced by EditorConfig rules.


EditorConfig Overview

.editorconfig is the standard configuration file for controlling code style and analysis rule behavior in .NET projects. The .NET compiler (Roslyn) reads .editorconfig to determine:

  • Code style preferences -- naming, formatting, expression-level patterns (IDE* rules)
  • Code quality rule severity -- suppress, demote, or escalate CA* and IDE* diagnostics
  • Formatting rules -- indentation, spacing, newlines

Directory Hierarchy and Precedence

Related skills

More from wshaddix/dotnet-skills

Installs
20
GitHub Stars
23
First Seen
Mar 7, 2026