Configure VSCode for C/C++
Configure VSCode for C/C++
Extensions
VSCode Config
1
2
3
4
{
"debug.focusEditorOnBreak": false,
"C_Cpp.intelliSenseEngine": "disabled",
}
Task Template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"version": "2.0.0",
"tasks": [
{
"label": "CMake Build Debug",
"type": "shell",
"command": "cmake --build . --target {}",
"options": {
"cwd": "${workspaceFolder}/build-Debug"
},
"problemMatcher": {
"base": "$gcc"
}
},
]
}
Launch Template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug XX",
"program": "${workspaceFolder}/build-Debug/{}",
"preLaunchTask": "CMake Build Debug",
"args": [
],
"cwd": "${workspaceFolder}",
},
]
}
This post is licensed under
CC BY 4.0
by the author.