Is it possible to create different Visual Studio Code workspaces separately with extensions? For example, workspace_1 with a C++ extension and workspace_2 with a Python extension.
1 Answers
You can install extensions and then enable/disable them on specific workspaces.
Open a workspace
From the Extensions panel, click on the gear icon of each extension
Click on the three dots at the top-right to list either all enabled or disabled
There is unfortunately no way to configure this from settings.json file (user, workspace, or folder), as the extensions information does not seem to be stored there:
Enabled/Disabled extensions are not stored in workspace settings. Instead it is stored in local storage cache. You can manage them from the extensions view.
More information on Managing Extensions can be found in the Visual Studio Code documentation.
If you want to create a shareable list of extensions for specific workspaces (for example, perhaps to commit to source control or sharing with teammates), you can specify a list of recommended extensions per workspace.
Open the command palette
Enter Extensions: Configure Recommended Extensions (Workspace)
Enter a list of extensions IDs
When the user opens the workspace for the first time, they will be notified of recommended extensions to install.

- 30,738
- 21
- 105
- 131

- 25,369
- 29
- 96
- 135