Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto DevcontainerNew to Visual Studio Code? Get it now.
Auto Devcontainer

Auto Devcontainer

Larry Oates

|
3 installs
| (0) | Free
Automatically reopen a workspace in its devcontainer when the project is opened
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Auto Devcontainer

VS Code extension that automatically reopens a workspace in its devcontainer when the project is opened.

GitHub Repository

Usage

  1. Open the target project in VS Code (locally, not in a container)
  2. Run Auto Devcontainer: Enable for this Workspace from the Command Palette (Ctrl+Shift+P)
  3. This writes "autoDevcontainer.enabled": true into .vscode/settings.json
  4. 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…

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft