问题
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.
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