dotnet/roslyn

.editorconfig and Code Cleanup issue with Visual Studio 2022 v17.2.1

Open

#61.434 aperta il 20 mag 2022

Vedi su GitHub
 (0 commenti) (3 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEBugFeature - Editor Confighelp wanted

Metriche repository

Star
 (20.414 star)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

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


[severity:It's more difficult to complete my work] Hi all!

I'm facing a strange issue with .editorconfig and Code Cleanup. In my solution I have the following setting in the .editorconfig:

image

Then, I have added the "Apply namespace matches folder preferences" in the Included fixers for Code Cleanup:

image

With this setup, regardless of the setting in the .editorconfig, when I run Code Cleanup on a file whose namespace does not match folder structure, the namespace is changed accordingly.

Am I missing something in the configuration or is there an issue with this feature?

Kindest regards.


Original Comments

(no comments)


Original Solutions

(no solutions)

Guida contributor