How to move a file to another folder in vscode?

Given the file tree

x / y / a.txt

How to move a file to

x /a.txt

When I right-click on a file, I just see the deletion and renaming, but not the move command. A Google search did not reveal anything about this. I am using vscode 1.6.1

Update. Currently it is not possible to move files and folders to the root folder: https://github.com/Microsoft/vscode/issues/1043

+9
source share
3 answers

You can use drag n 'drop to move the file

+9
source

, File Utils Visual Studio Code Marketplace.

+4

You can also move the file using the console (e.g. PowerShell or Git Bash) in code.

Recently, I have the habit of moving files or folders in the sidebar using ctrl + x (cut) and ctrl + v (paste), after this action the code automatically updates the import.

The drag and drop method also works.

+3
source

Source: https://habr.com/ru/post/1659035/


All Articles