Author : MD TAREQ HASSAN | Updated : 2023/07/24
Inroduction
- “
customizations
” property is used to configure tool-specific properties - If we need to change settings, or add extensions for specific tool, we can speficy those using “customizations” property in “devcontainer.json”
- “
customizations
” property is one of those properties that are specific to certain tools
Example
devcontainer.json
{
"customizations": {
// Configure properties specific to XYZ.
"XYZ": {
// Set *default* container specific settings.json values on container create.
"settings": {},
"extensions": [],
}
}
}
Customizations for VSCode
Visual Studio Code specific properties go under “vscode” inside customizations. To install vscode extension, and set bash as default integrated cli:
devcontainer.json
{
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "pwsh"
},
"extensions": [
"oderwat.indent-rainbow",
"ms-vscode.powershell"
]
}
}
}
Add vscode extension to customizations
search VS code extension > Right click > Add to devcontainer.json