Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I cleanly remove Workspaces in Visual Studio Code?

I'm on a MAC and remove workspaces with the terminal in the folder ~/Library/Application Support/Code/User/workspaceStorage, but i don't think it's the clean way.

Can someone explain me how I can remove cleanly a workspace and all its files from my mac?

I miss this feature. I can add many workspaces, but where is the "delete button"?

I use Visual Studio Code V.1.28.2 on macOS Mojave 10.14.

like image 498
MonTea Avatar asked Oct 26 '18 19:10

MonTea


People also ask

How do I clean my VS Code workspace storage?

Just Delete all the folders in the %userprofile%\AppData\Roaming\Code\User\workspaceStorage . You can also delete everything in (to make VS Code a little faster) : %userprofile%\AppData\Roaming\Code\User\Cache. %userprofile%\AppData\Roaming\Code\User\CacheData.

How do I delete a workspace folder?

In the Workspace Explorer, right click on the folder you wish to remove and select "Remove Folder from Workspace" from the the popup menu.

Where are VS Code workspaces stored?

Workspace settings will be stored in . vscode/settings. json when you open a folder as workspace.


2 Answers

You can use the command palette:

Menu: View > Command Palette... (or F1)

Search: "Workspaces: Remove Folder from Workspace..." and select the folder you want to remove.

Workspaces:Remove Folder from Workspace...

Hope this may help you

like image 60
iggict Avatar answered Oct 05 '22 14:10

iggict


Visual Studio Code 1.32.3. Windows 10.

Here's the answer from the Twitter account of Visual studio code:

From Twitter

You have just to go to the Explorer section and remove any folder or file in it see the image below:

Image 2

right click in the workspace you'd like to remove and select the "Remove Folder from Workspace" item; the name of the workspace will become: "NO FOLDER OPENED" that is the one you'll get when you installed the very first time Visual Studio Code.

Default

like image 32
user374324 Avatar answered Oct 05 '22 15:10

user374324