Search code examples
c#visual-studio.net-coreeditorconfig

.editorconfig Errors/Warnings only showing for files that are open


I set up .editorconfig preferences for naming, and I want to see them for all files in our solution, but Visual Studio (2019 16.4.5) only shows the warnings / errors (as defined) If I have the file open in the editor, not for all occurrences in all files, like I want.

How can I see all occurrences of naming rule violations across all files in the solution?


Solution

  • In Visual Studio go to

    Options -> Text Editor -> C# -> Advanced

    and check

    • Enable full solution analysis
    • Use .editorconfig compatibility mode

    Then restart VS and rebuild solution