This commit is contained in:
iridiumR 2021-12-03 00:09:33 +08:00
parent ed13d12398
commit ebbf118aa2
3 changed files with 23 additions and 33 deletions

8
.vscode/launch.json vendored
View file

@ -1,20 +1,18 @@
{
"version": "0.2.0",
"label": "Compile",
"configurations": [
{
"name": "g++.exe",
"label": "Compile",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "C:/Project/mingw64/bin",
"cwd": "C:/Project/mingw64/bin",//
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\Project\\mingw64\\bin\\gdb.exe",
"miDebuggerPath": "C:\\Project\\mingw64\\bin\\gdb.exe",//gdb
"setupCommands": [
{
"description": "gdb",
@ -22,7 +20,7 @@
"ignoreFailures": true
}
],
"preLaunchTask": "Compile"
"preLaunchTask": "Compile"//tasks.jsonlabel
}
]
}

43
.vscode/tasks.json vendored
View file

@ -1,33 +1,24 @@
// https://code.visualstudio.com/docs/editor/tasks
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile", // launch.jsonpreLaunchTask
"command": "clang++", // 使
"type": "cppbuild",
"label": "Compile",//launch.jsonpreLaunchTask
"command": "g++",
"args": [
"${file}",
"-o", // a.exe
"${fileDirname}/${fileBasenameNoExtension}.exe",
"-g", //
"-Wall", //
"-static-libgcc", //
"-fcolor-diagnostics",
"--target=x86_64-w64-mingw", // targetmsvc
"-std=c++17" // Cc11
], //
"type": "shell",
"group": {
"kind": "build",
"isDefault": true // falsetasks.json
"${fileDirname}\\*.cpp",//
"-g",//
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:/Project/mingw64/bin"//
},
"presentation": {
"echo": true,
"reveal": "always", // alwayssilentneverVSC
"focus": false, // true使taskcc++true
"panel": "shared" //
}
// "problemMatcher":"$gcc" // 使clang)
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "编译器: C:/Project/mingw64/bin/g++.exe"
}
]
],
"version": "2.0.0"
}

View file

@ -13,7 +13,8 @@
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"istream": "cpp"
"istream": "cpp",
"array": "cpp"
}
}
}