Skip to content

Commit 1e21711

Browse files
committed
Add configs
1 parent f4a477b commit 1e21711

File tree

4 files changed

+92
-0
lines changed

4 files changed

+92
-0
lines changed
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"${workspaceFolder}/**"
7+
],
8+
"defines": [
9+
"_DEBUG",
10+
"UNICODE",
11+
"_UNICODE"
12+
],
13+
"windowsSdkVersion": "10.0.19041.0",
14+
"compilerPath": "C:/Program Files/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/g++.exe",
15+
"cStandard": "c11",
16+
"cppStandard": "c++17",
17+
"intelliSenseMode": "gcc-x86"
18+
}
19+
],
20+
"version": 4
21+
}

cpp-lcof/.vscode/launch.json

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
"version": "0.2.0",
5+
"configurations": [
6+
{
7+
"name": "g++.exe - Build and debug active file",
8+
"type": "cppdbg",
9+
"request": "launch",
10+
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
11+
"args": [],
12+
"stopAtEntry": false,
13+
"cwd": "${workspaceFolder}",
14+
"environment": [],
15+
"externalConsole": false,
16+
"MIMode": "gdb",
17+
"miDebuggerPath": "gdb",
18+
"setupCommands": [
19+
{ // Display content in STL containers pretty
20+
"description": "Enable pretty-printing for gdb",
21+
"text": "-enable-pretty-printing",
22+
"ignoreFailures": true
23+
}
24+
],
25+
// VS Code debug的日志信息,能清楚gdb加载和运行的各种过程
26+
"logging": {
27+
"moduleLoad": false,
28+
"trace": true,
29+
"engineLogging": true,
30+
"exceptions": true
31+
},
32+
"preLaunchTask": "C/C++: g++.exe build active file"
33+
}
34+
]
35+
}

cpp-lcof/.vscode/settings.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"files.associations": {
3+
"*.vue": "vue",
4+
"deque": "cpp",
5+
"string": "cpp",
6+
"vector": "cpp",
7+
"new": "cpp",
8+
"unordered_map": "cpp"
9+
}
10+
}

cpp-lcof/.vscode/tasks.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
//"type": "shell",
6+
"label": "C/C++: g++.exe build active file",
7+
"command": "g++",
8+
"args": [
9+
"-g",
10+
"${file}",
11+
"-o",
12+
"${fileDirname}\\${fileBasenameNoExtension}.exe"
13+
],
14+
"options": {
15+
"cwd": "${workspaceFolder}"
16+
},
17+
"problemMatcher": [
18+
"$gcc"
19+
],
20+
"group": {
21+
"kind": "build",
22+
"isDefault": true
23+
}
24+
}
25+
]
26+
}

0 commit comments

Comments
 (0)