Skip to content

Editorconfig settings aren't being applied to code. #72594

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


Repro Steps:

  • Create a new Console App project name "TestProject".
  • Add a new class named "TestClass".
  • Open TestClass.cs and change the namespace from "TestProject" to "WrongNamespace".
  • Change IDE0130 to "Warning" doing the following:
    • Right-click "WrongNamespace"
    • Click "Quick Actions and Reactorings"
    • Hover over "Suppress or configure issues"
    • Hover over "Configure IDE0130 severity"
    • Click "Warning"
  • Notice that ".editorconfig" file is created and placed in the "Solution Items" folder.
  • Notice all the following discrepancies:
    • The namespace mismatch is still treated as "Suggestion" in the code editor
    • If you open the ".editorconfig" file in a text editor, it shows the level as "Warning"
    • If you open the ".editorconfig" file in the VS UI editor, it shows "Suggestion"

image.png

I'm not trying to be rude here, but it took well over a year for this one to get closed: https://developercommunity.visualstudio.com/t/Unable-to-add-editorconfig-file-in-VS202/10220124

Editorconfig issues were being reported long before that one was created too.

Can you guys please just make the editorconfig work properly? It hasn't worked correctly for the entirety of VS2022's existence.


Original Comments

Feedback Bot on 3/18/2024, 09:48 PM:

(private comment, text removed)


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions