Skip to content

Make it possible to move files via rename #183203

@TomasHubelbauer

Description

@TomasHubelbauer

Did not find an existing feature request here: https://github.com/microsoft/vscode/issues?q=is%3Aissue+is%3Aopen+rename+include+directory

I would like to request that it be possible to rename a file such that the new name is a new path and the file is moved as well as renamed in one step. Example":

  • File test.txt is in the directory that is open in VS Code, e.g.: /mydir
  • In the Explorer pane, I select test.txt and press F2 and give it a new path and name: subdir/test.log
  • VS Code moves the file to /mydir/subdir and renames it from test.txt to test.log so that the extension changes

This would be in line with what is already implemented for creating new file with path names in the file name:

  • In the Explorer pane, click on the New File icom
  • Name the file subdir/mynewfile.txt
  • The file is now at subdir/mynewfile.txt

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityfile-explorerExplorer widget issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions