diff options
author | saturneric <[email protected]> | 2024-08-12 11:23:37 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-08-12 11:23:37 +0000 |
commit | db759a25b73ca5b34444c486a0f761aa91245795 (patch) | |
tree | dd9d2ee987a53a6c8875129ecbb2a2f60a0ee031 /.devcontainer | |
parent | fix: some issues when using dev container (diff) | |
download | GpgFrontend-db759a25b73ca5b34444c486a0f761aa91245795.tar.gz GpgFrontend-db759a25b73ca5b34444c486a0f761aa91245795.zip |
feat: more customization and fix post create commands
Diffstat (limited to '.devcontainer')
-rw-r--r-- | .devcontainer/devcontainer.json | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e385e2e3..bab59d2d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,13 +2,11 @@ // README at: https://github.com/devcontainers/templates/tree/main/src/cpp { "name": "C++", - "hostRequirements": { "cpus": 4, "memory": "8gb", "storage": "32gb" }, - "build": { "dockerfile": "Dockerfile" }, @@ -23,17 +21,29 @@ // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], - // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "gcc -v", - - // Configure tool-specific properties. - // "customizations": {}, - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. // "remoteUser": "root" - - "postCreateCommand": { - "git": "git submodule update --recursive --init", - "build": "mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug .." - } + + "postCreateCommand": { + "git": "git submodule update --recursive --init", + "build": "cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug", + "clangd": "ln -s build/compile_commands.json $(pwd)/compile_commands.json" + }, + "customizations": { + "vscode": { + "extensions": [ + "jeff-hykin.better-cpp-syntax", + "ms-vscode.cpptools-themes", + "ms-vscode.cpptools", + "xaver.clang-format", + "llvm-vs-code-extensions.vscode-clangd", + "josetr.cmake-language-support-vscode", + "ms-vscode.cmake-tools", + "streetsidesoftware.code-spell-checker", + "vadimcn.vscode-lldb", + "yzhang.markdown-all-in-one", + "stkb.rewrap" + ] + } + } } |