Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to move a file to another folder in VS Code?

Given the file tree:

x/y/a.txt

How do I move the file up to:

x/a.txt

When right clicking on the file I just see delete and rename but not the move command. A google search did not reveal anything about this. I use vscode 1.6.1

Update: It is currently impossible to move files and folders to the root folder: https://github.com/Microsoft/vscode/issues/1043

like image 990
David Michael Gang Avatar asked Oct 27 '16 08:10

David Michael Gang


People also ask

How do you select and move in VS Code?

For moving the text right and left you can use TAB key: TAB move the selected text right. SHIFT + TAB move the selected text left.

How do I move a file to another folder in VB net?

Use the MoveFile method to move the file, specifying the source file name and location, the target location, and the new name at the target location.


2 Answers

You can use drag n' drop to move the file

like image 51
JonasMH Avatar answered Oct 19 '22 00:10

JonasMH


Move is available by right-clicking the file in the sidebar after installing File Utils from the Visual Studio Code Marketplace.

like image 19
Todd Avatar answered Oct 19 '22 01:10

Todd