VS Code extension that automatically reopens a workspace in its devcontainer when the project is opened.
Usage
- Open the target project in VS Code (locally, not in a container)
- Run
Auto Devcontainer: Enable for this Workspacefrom the Command Palette (Ctrl+Shift+P) - This writes
"autoDevcontainer.enabled": trueinto.vscode/settings.json - Next time the project is opened, the extension prompts you to reopen in the container
Commands
| Command | Description |
|---|---|
Auto Devcontainer: Enable for this Workspace |
Enable auto-open for the current project |
Auto Devcontainer: Disable for this Workspace |
Disable auto-open for the current project |
Settings
| Setting | Default | Description |
|---|---|---|
autoDevcontainer.enabled |
false |
Enable auto-reopen in devcontainer for this workspace |
The setting is stored at workspace scope (.vscode/settings.json), so it travels with the repo.
Requirements
The Dev Containers extension must be installed.
Building
npm install
npm run compile
npm run package # produces auto-devcontainer-<version>.vsix (version from package.json)
Install the .vsix via Extensions → … → Install from VSIX…