一、c_cpp_properties.json
{ “configurations”: [ { “name”: “Win32”, “includePath”: [ “${workspaceFolder}/**” ], “defines”: [ “_DEBUG”, “UNICODE”, “_UNICODE” ], “cStandard”: “c11”, “cppStandard”: “c++17”, “intelliSenseMode”: “gcc-x64”, “compilerPath”: “E:/ming64/x86_64-8.1.0-release-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe” } ], “version”: 4 }
二、launch.json
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 “version”: “0.2.0”, “configurations”: [ { “name”: “g++.exe - 生成和调试活动文件”, “type”: “cppdbg”, “request”: “launch”, “program”: “${fileDirname}\${fileBasenameNoExtension}.exe”, “args”: [], “stopAtEntry”: false, “cwd”: “E:/ming64/x86_64-8.1.0-release-win32-seh-rt_v6-rev0/mingw64/bin”, “environment”: [], “externalConsole”: false, “MIMode”: “gdb”, “miDebuggerPath”: “E:\ming64\x86_64-8.1.0-release-win32-seh-rt_v6-rev0\mingw64\bin\gdb.exe”, “setupCommands”: [ { “description”: “为 gdb 启用整齐打印”, “text”: “-enable-pretty-printing”, “ignoreFailures”: true } ], “preLaunchTask”: “C/C++: g++.exe 生成活动文件” } ] }
三、tasks.json
{ “version”: “2.0.0”, “tasks”: [ { “type”: “cppbuild”, “label”: “C/C++: g++.exe 生成活动文件”, “command”: “E:/ming64/x86_64-8.1.0-release-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe”, “args”: [ “-g”, “
f
i
l
e
"
,
"
?
o
"
,
"
{file}", "-o", "
file","?o","{fileDirname}\
f
i
l
e
B
a
s
e
n
a
m
e
N
o
E
x
t
e
n
s
i
o
n
.
e
x
e
"
]
,
"
o
p
t
i
o
n
s
"
:
"
c
w
d
"
:
"
E
:
/
m
i
n
g
64
/
x
8
6
6
4
?
8.1.0
?
r
e
l
e
a
s
e
?
w
i
n
32
?
s
e
h
?
r
t
v
6
?
r
e
v
0
/
m
i
n
g
w
64
/
b
i
n
"
,
"
p
r
o
b
l
e
m
M
a
t
c
h
e
r
"
:
[
"
{fileBasenameNoExtension}.exe" ], "options": { "cwd": "E:/ming64/x86_64-8.1.0-release-win32-seh-rt_v6-rev0/mingw64/bin" }, "problemMatcher": [ "
fileBasenameNoExtension.exe"],"options":"cwd":"E:/ming64/x866?4?8.1.0?release?win32?seh?rtv?6?rev0/mingw64/bin","problemMatcher":["gcc” ], “group”: { “kind”: “build”, “isDefault”: true }, “detail”: “编译器: E:/ming64/x86_64-8.1.0-release-win32-seh-rt_v6-rev0/mingw64/bin/g++.exe” } ] }
|