33{
44 "name" : " C++" ,
55 "build" : {
6- "dockerfile" : " Dockerfile" ,
6+ "dockerfile" : " Dockerfile"
77 // Update 'VARIANT' to pick an Ubuntu OS version. Options: [bionic, focal, jammy]. Default: jammy
88 // Update 'GCC_VER' to pick a gcc and g++ version. Options: [7, 8, 9, 10, 11, 12]. Default: 12
99 // Update 'LLVM_VER' to pick clang version. Options: [10, 11, 12, 13, 14, 15]. Default: 15
1919 " --security-opt" ,
2020 " seccomp=unconfined"
2121 ],
22- // Set *default* container specific settings.json values on container create.
23- "settings" : {
24- "cmake.configureOnOpen" : true ,
25- "editor.formatOnSave" : true
22+ // Configure tool-specific properties.
23+ "customizations" : {
24+ // Configure properties specific to VS Code.
25+ "vscode" : {
26+ // Set *default* container specific settings.json values on container create.
27+ "settings" : {
28+ "cmake.configureOnOpen" : true ,
29+ "editor.formatOnSave" : true
30+ },
31+ // Add the IDs of extensions you want installed when the container is created.
32+ "extensions" : [
33+ " ms-vscode.cpptools" ,
34+ " ms-vscode.cmake-tools" ,
35+ " twxs.cmake" ,
36+ " ms-vscode.cpptools-themes" ,
37+ " cschlosser.doxdocgen" ,
38+ " eamodio.gitlens" ,
39+ " ms-python.python" ,
40+ " ms-python.vscode-pylance" ,
41+ " mutantdino.resourcemonitor"
42+ ]
43+ }
2644 },
27- // Add the IDs of extensions you want installed when the container is created.
28- "extensions" : [
29- " ms-vscode.cpptools" ,
30- " ms-vscode.cmake-tools" ,
31- " twxs.cmake" ,
32- " ms-vscode.cpptools-themes" ,
33- " cschlosser.doxdocgen" ,
34- " eamodio.gitlens" ,
35- " ms-python.python" ,
36- " ms-python.vscode-pylance" ,
37- " mutantdino.resourcemonitor"
38- ],
3945 // Use 'forwardPorts' to make a list of ports inside the container available locally.
4046 // "forwardPorts": [],
4147 // Use 'postCreateCommand' to run commands after the container is created.
42- // "postCreateCommand": "uname -a",
48+ "postCreateCommand" : {
49+ "uname" : " uname -a" ,
50+ "gcc" : " gcc -v" ,
51+ "clang" : " clang -v"
52+ },
4353 // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
4454 // "remoteUser": "vscode",
4555 "workspaceMount" : " source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind,consistency=delegated" ,
4656 "workspaceFolder" : " /workspaces/${localWorkspaceFolderBasename}" ,
4757 "features" : {
48- "git" : " latest " ,
49- "git-lfs" : " latest " ,
50- "powershell" : " latest "
58+ "ghcr.io/devcontainers/features/ git:1 " : {} ,
59+ "ghcr.io/devcontainers/features/ git-lfs:1 " : {} ,
60+ "ghcr.io/devcontainers/features/ powershell:1 " : {}
5161 }
5262}
0 commit comments