How can I cleanly remove Workspaces in Visual Studio Code?

杀马特。学长 韩版系。学妹 提交于 2020-12-04 19:32:49

问题


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.


回答1:


Visual Studio Code 1.32.3. Windows 10.

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

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

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.




回答2:


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




回答3:


find workspace.json, it will be inside the workspace you had created workspaces->[unique number]->workspace.json . you can edit the workspace directories in it.




回答4:


It seems that workspaces are either open or closed, you can close them from the main menu. To cleanly delete a workspace, just remove the workspace file from disk also.



来源:https://stackoverflow.com/questions/53015284/how-can-i-cleanly-remove-workspaces-in-visual-studio-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!