multiple-dev-container-vscode
multiple-dev-container-vscode copied to clipboard
An example repo on how to use multiple devcontainer.json files with VS Code.
Working with multiple dev containers in VS Code
Prerequisites
- Dev Containers Extension installed in VS Code.
How to use multiple dev containers in a single VS Code window
- Open local VS Code window on cloned repo.
- From the command palette
Dev Containers: Reopen in Container, pick Python Container. - This will open a new VS Code window connected to the selected container.
- From the command palette
Dev Containers: Switch Container, pick Node Container. - This will reload the VS Code window connected to the selected container.
How to use multiple dev containers in a multiple VS Code window
- Open local VS Code window on cloned repo.
- From the command palette
Dev Containers: Reopen in Container, pick Python Container. - This will open a new VS Code window connected to the selected container.
- Go to File > New Window.
- In this new window, from the command palette
Dev Containers: Reopen in Container, pick Node Container. - This will open a new VS Code window connected to the selected container.