Skip to content

Add a "sync/adjust namespace" action #2639

@FrancescoBonizzi

Description

@FrancescoBonizzi

Describe the feature you'd like

When you right-click a folder in Solution Explorer, provide a command named "Sync/Adjust Namespace". The command should update the namespaces of all C# files in that folder (including subfolders) so that each file’s namespace matches its relative filesystem path within the project, correcting any mismatches automatically.

Alternatives considered

Currently, there’s an action hint available on individual files, but it must be triggered manually for each file, one at a time. (If someone knows a script to do that on each file automatically, I'm listening)

Environment Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions