dotnet/roslyn

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

Open

#61,434 opened on May 20, 2022

View on GitHub
 (0 comments) (3 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEBugFeature - Editor Confighelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

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)

Contributor guide