Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing a file or folder using VS Code

When I bring up VS Code I see options for adding a file or folder but I do not see options to delete a file or folder or rename such. Any hints?

like image 801
Kevin Burton Avatar asked Jan 07 '17 03:01

Kevin Burton


2 Answers

Thank you I figured it out. It doesn't seem immediately obvious to me but on a MAC using VSCode selecting a file and entering the return key lets you rename a file, selecting a file and then using command-del deletes a file.

like image 116
Kevin Burton Avatar answered Oct 12 '22 23:10

Kevin Burton


The Rename and Delete actions are there, but you have to select the file in the bottom part of Explorer, under the project directory. When you select it under Open Editors or right click on the tab bar, there is no Delete and that is confusing. In this case you can choose Reveal in Side bar in the tab context menu to get to that entry. But that won't help (will select the tab under Open Editors) if the file is out of the project tree, in this case the most convenient action would probably be to Open Containing Folder and delete it manually in the file manager.

Screenshot

like image 45
user Avatar answered Oct 12 '22 23:10

user