Skip to content

Auto-sync namespaces in all files when a folder is renamed in the Explorer #2656

@AyaOmer

Description

@AyaOmer

Describe the feature you'd like

Currently, when I rename a folder in the VS Code file explorer that contains C# files, the namespaces inside those files do not update automatically. I have to open each file manually and trigger the "Sync namespace with folder name" code action.

It would be a significant productivity improvement if the C# Dev Kit could automatically detect folder renames and update the namespace declarations in all .cs files within that folder (and subfolders) without requiring the user to open each file.

Thank you in advance for considering this enhancement!
Aya

Alternatives considered

No response

Environment Information

No response

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions