To do so, edit the workspace file, and add a “name” attribute to the object relative to your folder, alongside the “path” attribute. If you have multiple folders, you may want to assign a name to each one as it might be helpful later on. That can be done through Visual Studio Code itself since it is basically a JSON file listing all folders belonging to the project and workspace level (that is, global) settings. Once you have saved your workspace file, you can start editing it.
To do so, click on the “File” menu and select “Save Workspace As…”. Removing folders from a workspace is done by right clicking on a folder and then selecting “Remove Folder from Workspace”.ĭoing anything more than just reading and searching through your code will require you to save and possibly adjust your workspace. In any case, you can add a folder to your workspace by selecting the “File” menu and then “Add folder to workspace…”. A Visual Studio Code workspace is just a bundle of opened folders