Skip to content

When renaming files or moving them around in "Solution Explorer", editor should switch focus to the file #2317

@dev10299

Description

@dev10299

Describe the feature you'd like

When a file is renamed or moved in Solution Explorer, the editor should automatically switch focus to the new file location or name.

Currently, if you rename or move a file:

  1. The original file is deleted.
  2. The file is copied to its new location or renamed.
  3. The editor remains focused on the original, now-deleted file.

This creates a frustrating issue: you might think you're editing the newly named or moved file, but you're actually still working on the deleted file. If you make changes, a new copy of the old file is unknowingly created, and your changes won't be saved to the new file. This causes confusion, slows down your workflow, and can lead to errors.

The correct behavior should be:

  1. The original file is deleted.
  2. The file is copied to its new location or renamed.
  3. The editor automatically closes the old file and opens the new one.

Alternatives considered

No response

Environment Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-templatesExperiences around the project/item templatesenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions