.NET tools and diagnostics文档阅读。

  • Code analysis
    • Rule reference
      • Code style rules
        • Formatting rules
          • IDE0055
            • Overview
              • 简单地说,可以用.editorconfig来配置格式化选项

其他

C# Linting and Formatting Tools in 2021

  • dotnet-format似乎不尽人意。
  • StyleCopAnalyzers作者推荐使用。
  • SonarLint作者强烈推荐。
  • ReSharper不错但是有槽点
    • 贵、慢
    • VS内置的慢慢迎头赶上了
    • 熟悉了C#之后,ReSharper的告警会变得烦人

csharpier - prettier C# code? (again)

介绍了https://github.com/belav/csharpier/

(此处是底线)