Any extension you want available to the project running inside the devcontainer you should have on the list. To quickly add extensions from your locally installed extensions. Inside the running dev container you can click the gear icon and select “Add to devcontainer.json” then rebuild the container. Answer from tipsdown on reddit.com
🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › containers
Developing inside a Container
November 3, 2021 - The Visual Studio Code Dev Containers extension lets you use a container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Dev Containers - Visual Studio Marketplace
Extension for Visual Studio Code - Open any folder or repository inside a Docker container and take advantage of Visual Studio Code's full feature set.
Discussions

vscode devcontainer - Installing recommended VS Code extensions in Dev Container - Stack Overflow
In Visual Studio Code, it is possible to recommend extensions for a project by listing them in the file .vscode/extensions.json. For Dev Containers, it is possible to automatically install extensions More on stackoverflow.com
🌐 stackoverflow.com
Extensions defined in devcontainer.json are not installing
I have extensions that are defined in my devcontainer.json but if I rebuild the container they are not installing. I even tried making an entirely new project from the default generated code and sa... More on github.com
🌐 github.com
15
February 24, 2023
visual studio code - default extensions in devcontainers in vscode - Stack Overflow
I try to understand the way vscode devcontainer is working. I created a devContainer ("create a new dev container" -> using nodejs image). I see a mount for my workspace and another on... More on stackoverflow.com
🌐 stackoverflow.com
codespaces - How to add extension settings to devcontainer.json? - Stack Overflow
But if you need these settings to be version controlled and persistent, they can be defined in .vscode/settings.json ... I can and have defined extension settings in devcontainer.json. More on stackoverflow.com
🌐 stackoverflow.com
🌐
Reddit
reddit.com › r/vscode › what kind of extensions should be installed inside a dev container?
r/vscode on Reddit: What kind of extensions should be installed inside a Dev Container?
November 7, 2023 -

Note: This is not asking for extension recommendations.

I recently started exploring the use of Dev Containers for my next Python+NodeJS+PostgreSQL project, and am trying to understand the customizations => extensions part of .devcontainer.json. For example, after auto-generating the configuration file, this is what's in there currently:

"customizations": {
    "vscode": {
        "extensions":["ms-python.python", "njpwerner.autodocstring"]
    }
}

How do I evaluate which other extensions currently installed in the host need to be installed locally inside the container, and which don't?

🌐
Development Containers
containers.dev › supporting
Supporting tools and services
It can detect and include dev container ... and docker run. The VS Code Dev Containers extension includes a variation of the Dev Container CLI that adds the ability use the command line to open a dev container in VS Code....
🌐
Visual Studio Code
code.visualstudio.com › remote › advancedcontainers › overview
Advanced container configuration
November 3, 2021 - The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full ...
🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › tutorial
Dev Containers tutorial
November 3, 2021 - More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/javascript-node:0-18", // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, "customizations": { "vscode": { "settings": {}, "extensions": ["streetsidesoftware.code-spell-checker"] } }, // "forwardPorts": [3000], "portsAttributes": { "3000": { "label": "Hello Remote World", "onAutoForward": "notify" } }, "postCreateCommand": "yarn install" // "remoteUser": "root" } The above example is extracted from the vscode-remote-try-node repo we used in the tutorial.
🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › create-dev-container
Create a Dev Container
November 3, 2021 - The Visual Studio Code Dev Containers extension lets you use a Docker container as a full-featured development environment. It allows you to open any folder or repository inside a container and take advantage of Visual Studio Code's full feature set.
Find elsewhere
🌐
Ken Muse
kenmuse.com › blog › implementing-private-vs-code-extensions-for-dev-containers
Implementing Private VS Code Extensions for Dev Containers - Ken Muse
September 20, 2024 - In order to install the extension, it needs to be available on the file system before the extensions are configured. That typically means that it should exist before the first start/attach attempt. As a result, most approaches will rely on an onCreateCommand or updateContentCommand lifecycle script. This can be implemented as a feature or directly in the devcontainer.json. For example: 1{ 2 "name": "My Container", 3 // Other properties and content ... 4 "customizations": { 5 "vscode": { 6 "extensions": [ 7 "${containerWorkspaceFolder}/.devcontainer/extensions/customtool/publish/tool.vsix" 8 ] 9 } 10 }, 11 "onCreateCommand": "${containerWorkspaceFolder}/.devcontainer/buildAndAcquireExtensions.sh" 12}
🌐
Stack Overflow
stackoverflow.com › questions › 77164691 › installing-recommended-vs-code-extensions-in-dev-container
vscode devcontainer - Installing recommended VS Code extensions in Dev Container - Stack Overflow
In Visual Studio Code, it is possible to recommend extensions for a project by listing them in the file .vscode/extensions.json. For Dev Containers, it is possible to automatically install extensions upon creation of the container by listing them in the file devcontainer.json.
🌐
GitHub
github.com › microsoft › vscode-remote-release › issues › 8097
Extensions defined in devcontainer.json are not installing · Issue #8097 · microsoft/vscode-remote-release
February 24, 2023 - [52088 ms] [02:41:01] Started initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions [52092 ms] [02:41:01] ComputeTargetPlatform: linux-arm64 [52109 ms] [02:41:01] Completed initializing default profile extensions in extensions installation folder. file:///home/vscode/.vscode-server/extensions · I have both settings and extensions configured in the devcontainer.json and it seems to be working fine for the settings as I can see my inclusions in $HOME/.vscode-server/data/Machine/settings.json but $HOME/.vscode-server/extensions/extensions.json is empty
Author   orolega
🌐
Stack Overflow
stackoverflow.com › questions › 78069672 › default-extensions-in-devcontainers-in-vscode
visual studio code - default extensions in devcontainers in vscode - Stack Overflow
You can manually add extensions to 'devcontainer.json'. // Configure tool-specific properties. "customizations": { "vscode": { "extensions": [ "avaloniateam.vscode-avalonia" ] } }
🌐
DEV Community
dev.to › azure › extending-vscode-dev-container-features-4n71
Extending VSCode Dev Container Features - DEV Community
December 2, 2022 - When you select to add features, ... to your devcontainer.json configuration file. This file is what tells VSCode how it should access or create your Dev Container. You can find more details on the properties of the files here. As you can see, it is really easy to add Azure CLI to your Dev container. But what if you needed to add an Azure CLI extension...
🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › faq
Dev Containers FAQ
November 3, 2021 - vscode.download.prss.microsoft.com · The Dev Containers extensions will download VS Code Server locally and copy it to the container once connected. You can install extensions manually without an internet connection using the Extensions: Install ...
🌐
Medium
medium.com › versent-tech-blog › introduction-to-dev-containers-4c01cb1752a0
Introduction to Dev Containers. An introduction to Dev Containers in… | by Mathew Hemphill | Versent Tech Blog | Medium
June 19, 2024 - { "name": "Java Development", "build": { "dockerfile": "./Dockerfile", "context": "." }, "features": { "ghcr.io/devcontainers/features/git:1": { "version": "latest", "ppa": "false" } }, "containerEnv": { "JAVA_HOME": "/usr/lib/jvm/java-21-amazon-corretto" }, "customizations": { "vscode": { "settings": {}, "extensions": [ "vscjava.vscode-java-pack" ] } }, "remoteUser": "root" }
🌐
GitHub
btholt.github.io › complete-intro-to-containers › visual-studio-code
Dev Containers with Visual Studio Code – Features in Docker – Complete Intro to Containers
Next make a file inside .devcontainer called devcontainer.json. The folder name has leading ., the the JSON file does not. { "name": "Frontend Masters Sample", "dockerFile": "Dockerfile", "appPort": [3000], "runArgs": ["-u", "node"], "settings": { "workbench.colorTheme": "Night Owl", // "workbench.colorTheme": "Hot Dog Stand", "terminal.integrated.shell.linux": "/bin/bash" }, "postCreateCommand": "npm install", "extensions": [ // "somekittens.hot-dog-stand", "sdras.night-owl", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode" ] }
🌐
Visual Studio Code
code.visualstudio.com › docs › devcontainers › tips-and-tricks
Dev Containers Tips and Tricks
November 3, 2021 - The Develop inside a container on a remote Docker Machine or SSH host article covers how to setup VS Code when working with a remote Docker host. This is often as simple as setting the Container Tools extension containers.environment property in settings.json or the DOCKER_HOST environment variable to a ssh:// or tcp:// URI.
🌐
GitHub
github.com › microsoft › vscode-dev-containers
GitHub - microsoft/vscode-dev-containers: NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own! · GitHub
November 30, 2023 - The definitions describe the ... VS Code extensions that should be installed. Each provides a container configuration file (devcontainer.json) and other needed files that you can drop into any existing folder as a starting point for containerizing your project. You can use the Add Development Container Configuration Files... command to add one to your project or codespace. The vscode-remote-try-* ...
Starred by 4.7K users
Forked by 1.4K users
Languages   Shell 78.1% | Dockerfile 8.2% | JavaScript 7.0% | Jupyter Notebook 4.4% | Python 0.9% | C# 0.4%
🌐
Visual Studio Code
code.visualstudio.com › blogs › 2022 › 09 › 15 › dev-container-features
Custom Dev Container Features
September 15, 2022 - You can also explore official and publicly contributed Features on the specification site. Any Feature can be added by editing devcontainer.json, and publicly published ones can be added through existing dev container configuration experiences (such as available in the VS Code Dev Containers extension).
🌐
Rancher Desktop
docs.rancherdesktop.io › vs code remote containers
VS Code Remote Containers | Rancher Desktop Docs
The [Visual Studio Code Remote - Containers] extension lets you use a Docker container as a full-featured development environment, which helps ensure a consistent environment across developer machines and makes it easy for new team members and contributors to get up and running.