-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevcontainer.json
46 lines (46 loc) · 1.48 KB
/
devcontainer.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// For format details, see https://aka.ms/devcontainer.json.
// For config options, see the README at: https://github.com/devcontainers/templates/tree/main/src/cpp
{
"name": "C++",
"workspaceMount": "source=${localWorkspaceFolder},target=/app,type=bind",
"workspaceFolder": "/app",
"build": {
"context": "..",
"dockerfile": "Dockerfile-ubuntu"
},
"onCreateCommand": "chmod +x .devcontainer/onCreateCommand.sh && ./.devcontainer/onCreateCommand.sh",
"remoteUser": "root",
"features": {},
"customizations": {
"vscode": {
"extensions": [
// Clangd: code complete, compile error, clang-format etc
"llvm-vs-code-extensions.vscode-clangd",
// Format all files in the workspace
"jbockle.jbockle-format-files",
// Cmake syntax highlighting
"twxs.cmake",
// Check grammar in text and Markdown
"znck.grammarly",
// Spelling check in code
"streetsidesoftware.code-spell-checker"
],
"settings": {
"clangd.path": "/usr/bin/clangd",
"clangd.arguments": [
"--compile-commands-dir=${workspaceFolder}/build",
"-std=c++23"
],
"clang-format.executable": "clang-format",
"clang-format.style": "file",
"clang-format.fallbackStyle": "Microsoft",
"clang-format.formatOnSave": true,
"clang-format.formatOnType": true,
"clang-format.arguments": [
"-assume-filename=${workspaceFolder}/.clang-format"
],
"formatFiles.excludedFolders": [ "node_modules", ".vscode", ".git", "dist", ".chrome", ".cache", "build"]
}
}
}
}