Author : MD TAREQ HASSAN | Updated : 2023/07/24

Inroduction

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