In a Codespaces .devcontainer/devcontainer.json file I may have the following:
"customizations": {
"vscode": {
"extensions": [
"snowflake.snowflake-vsc"
]
}
}
and in the Codespaces VS Code environment, I copy a setting I want to persist for all Codespaces environments, e.g.
"git.autofetch": true
I should note here that git appears to be a default extension either with VS code or the miniconda dockerfile base image I'm using. In any case, I think these two quoted concepts are related, or maybe they're not exactly, but I can't seem to find any guidance on how to actually persist the git setting. Any takers?
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
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With