Skip to content

include .editorconfig equivalents on the wiki #2551

Closed

Description

@Arithmomaniac

It would be nice if the documentation for each rule said what equivalent .editorconfig rule(https://docs.microsoft.com/en-us/visualstudio/ide/editorconfig-code-style-settings-reference) was (if applicable), so that teams could package settings to override Visual Studio automatically to match their StyleCop rules.

For example, the header for SA1027 could look like

TypeName SA1027UseTabsCorrectly
CheckId SA1027
Category Spacing Rules
EditorConfig Rule indent_style
,

with the link pointing directly to the appropriate rule on docs.microsoft.com or github.com/editorconfig.

The documentation could also be updated with a guide to using with EditorConfig, and the text "EditorConfig rule" could be linked to that guide.

If approved, I would be open to hunting down the rule equivalents.

Activity

  1. moved this from Backlog to In progress in StyleCopAnalyzerson Oct 10, 2026
  2. AArnott commented on Oct 11, 2026

    @AArnott
    Contributor

    #4221 adds a reference in Configuration.md mapping each StyleCop setting to its .editorconfig key (including the generic ones such as insert_final_newline and file_header_template that StyleCop honors as fallbacks), so teams can package settings in an .editorconfig. Per-rule docs were not individually updated; the central reference covers it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions