diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..7ad4927 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,4 @@ +FROM mcr.microsoft.com/devcontainers/cpp:debian + +USER vscode +RUN curl -fsSL https://xmake.io/shget.text | bash diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..f0b9a0e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,19 @@ +{ + "name": "C++", + "build": { "dockerfile": "Dockerfile" }, + "customizations": { + "vscode": { + "extensions": [ + "tboox.xmake-vscode", + "ms-vscode.cpptools-extension-pack", + "yzhang.markdown-all-in-one", + "redhat.vscode-yaml", + "esbenp.prettier-vscode", + "eamodio.gitlens", + "github.vscode-pull-request-github", + "github.vscode-github-actions", + "github.copilot" + ] + } + } +} diff --git a/ReadMe.md b/ReadMe.md index cce0ba6..1d56539 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -13,11 +13,6 @@ The simplest C/C++ project template for beginners. 2. Click the **[Open in GitHub codespaces][2] button** on the top of ReadMe file, then an **online VS Code development environment** will be started immediately -3. Run following command in VS Code terminal to install XMake: - ```bash - curl -fsSL https://xmake.io/shget.text | bash - ``` - ## Install minimal All-in-One Development Environment in your computer ### Windows