Skip to content

Commit bab136f

Browse files
CopilotTechQuery
andauthored
[add] Dev Container configuration for auto CDE (#2)
Co-authored-by: South Drifter <shiy2008@gmail.com>
1 parent 984900e commit bab136f

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM mcr.microsoft.com/devcontainers/cpp:debian
2+
3+
USER vscode
4+
RUN curl -fsSL https://xmake.io/shget.text | bash

.devcontainer/devcontainer.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "C++",
3+
"build": { "dockerfile": "Dockerfile" },
4+
"customizations": {
5+
"vscode": {
6+
"extensions": [
7+
"tboox.xmake-vscode",
8+
"ms-vscode.cpptools-extension-pack",
9+
"yzhang.markdown-all-in-one",
10+
"redhat.vscode-yaml",
11+
"esbenp.prettier-vscode",
12+
"eamodio.gitlens",
13+
"github.vscode-pull-request-github",
14+
"github.vscode-github-actions",
15+
"github.copilot"
16+
]
17+
}
18+
}
19+
}

ReadMe.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ The simplest C/C++ project template for beginners.
1313

1414
2. Click the **[<kbd>Open in GitHub codespaces</kbd>][2] button** on the top of ReadMe file, then an **online VS Code development environment** will be started immediately
1515

16-
3. Run following command in VS Code terminal to install XMake:
17-
```bash
18-
curl -fsSL https://xmake.io/shget.text | bash
19-
```
20-
2116
## Install minimal All-in-One Development Environment in your computer
2217

2318
### Windows

0 commit comments

Comments
 (0)