background
VS Code can open local projects through "File/Open Folder", but if you want to open multiple projects, you need to switch back and forth, which is laborious. At this point, you can use the workspace function to place different projects in the same workspace, which is very convenient when switching projects.
operation method
open one of the items
Execute the command: file> open folder
Select the folder where the project control is located and click Open
save project as workspace
Execute the command: File > Add Folder to Workspace...
Select the folder to save the workspace, and a workspace file will be generated under the folder: ****-workspace.code-workspace
open workspace
Execute the command: File>Open Workspace from File...
Select the workspace file generated in step 2: ****-workspace.code-workspace
You can see that the resource location is currently displayed as (workspace), and 3 projects have been added under the workspace
Add project to workspace
Execute the command: File>Add Folder to Workspace...
This command will only appear if the open resource is a workspace
Additional information
Most of the projects are placed on git. Briefly describe the usage of git to pull the project to the local, the git tool pull method:
Right-click on the folder where the project needs to be pulled, and select Git GUI Hear (provided that git is installed locally)
Source Location Fill in the address of the git project, the following two formats are acceptable
[email protected]:be/app/data-init.git
https://gitlab.com/be/app/data-init.git
Target Directory Fill in the local directory, and the project will be downloaded to this directory