vscode devcontainer - Installing recommended VS Code extensions in Dev Container - Stack Overflow
Extensions defined in devcontainer.json are not installing
visual studio code - default extensions in devcontainers in vscode - Stack Overflow
codespaces - How to add extension settings to devcontainer.json? - Stack Overflow
Videos
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?
Settings can be added in the settings section of vscode .
"customizations": {
"vscode": {
"settings": {
"git.autofetch": true,
},
"extensions": [
"snowflake.snowflake-vsc"
]
}
}
You cannot directly define extension settings in the devcontainer.json. But if you need these settings to be version controlled and persistent, they can be defined in .vscode/settings.json
{
"git.autofetch": true
}