Skip to main content

DevContainer Context Menu

Open any folder as a VS Code (or compatible fork) Devcontainer — from a context menu or the terminal.

Support

  • Windows via a Rust based COM extension
  • Linux (Nautilus) via a python based nautilus extension
  • Command line via a python uvx tool, run uvx code-devcontainer

Changing editor

All version of the extension take the first binary called code on your PATH.

If you want to change to another VS Code fork such as VSCodium then make sure to add it to your PATH.

Required folder structure

The Open in Devcontainer entry appears only for folders that contain a devcontainer config — either by selecting a single directory or right-clicking the background of an open folder. Place the config in either of these locations:

my-project/
├── .devcontainer/
│   └── devcontainer.json   # preferred
└── ...

# or, at the project root:

my-project/
├── devcontainer.json       # fallback
└── ...

The config is resolved in this order:

  1. .devcontainer/devcontainer.json
  2. devcontainer.json

If neither file exists, VS Code still opens the folder in Dev Containers mode and prompts you to create a configuration.

workspaceFolder is read from the config when present; otherwise the container defaults to /workspaces/<folder-name>.

A minimal devcontainer.json:

{
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu"
}

CLI

dcode              # opens the current directory
dcode ~/my-project # opens the specified directory

Linux — Nautilus context menu

Install the .deb from the latest GitHub release:

sudo dpkg -i code-devcontainer_*_all.deb

Then restart Nautilus:

nautilus -q

Right-click any folder (or the background of an open folder) that contains a devcontainer config and choose Open in Devcontainer. The entry only appears for folders that have a config.

Windows — Explorer context menu

Download code-devcontainer-setup.exe from the latest GitHub release and run it. No admin rights required.

Right-click any folder (or the background of an open folder) that contains a devcontainer config and choose Open in Devcontainer. The entry only appears for folders that have a config. Uninstall from Settings → Apps ("Open in Devcontainer").

Development

uv sync
just test        # run tests with coverage
just lint        # ruff check + format
just typecheck   # ty check

Release

Trigger the Release workflow in GitHub Actions and choose patch, minor, or major. This bumps the version, publishes to PyPI, builds a .deb and Windows installer, and creates a GitHub release with all assets attached.

Metadata

Release files for devcontainer-context-menu 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for devcontainer-context-menu 0.1.4
File Size Uploaded Provenance Actions
devcontainer_context_menu-0.1.4.tar.gz 3.7 kB With provenance Details for devcontainer_context_menu-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for devcontainer-context-menu 0.1.4
File Interpreter ABI Platform Actions
devcontainer_context_menu-0.1.4-py3-none-any.whl Python 3 none any Details for devcontainer_context_menu-0.1.4-py3-none-any.whl

Total release size: 8.8 kB

Release files / devcontainer_context_menu-0.1.4.tar.gz

Download URL devcontainer_context_menu-0.1.4.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f0918179dd5966a9489c0e226463808529b9224affde431354ba25ae0ef0a996
BLAKE2b-256 checksum
How to use checksums
b58646a6b01bc5d5c4d0e1608a808121da874b13c84c3c89c3a567ef81b243ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Release files / devcontainer_context_menu-0.1.4-py3-none-any.whl

Download URL devcontainer_context_menu-0.1.4-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9568720eb43b8b5ca5fb529524dc0c34996f13247d9588d51725d9551bab724d
BLAKE2b-256 checksum
How to use checksums
937ec414ee567427e6a21a7f9855f65cd493af7597e2c415bfe854e6998cbe53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

Security for devcontainer-context-menu 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for devcontainer_context_menu-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page