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", "version": "0.2.0",
"label": "Compile",
"configurations": [ "configurations": [
{ {
"name": "g++.exe", "name": "g++.exe",
"label": "Compile",
"type": "cppdbg", "type": "cppdbg",
"request": "launch", "request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe", "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "C:/Project/mingw64/bin", "cwd": "C:/Project/mingw64/bin",//
"environment": [], "environment": [],
"externalConsole": false, "externalConsole": false,
"MIMode": "gdb", "MIMode": "gdb",
"miDebuggerPath": "C:\\Project\\mingw64\\bin\\gdb.exe", "miDebuggerPath": "C:\\Project\\mingw64\\bin\\gdb.exe",//gdb
"setupCommands": [ "setupCommands": [
{ {
"description": "gdb", "description": "gdb",
@ -22,7 +20,7 @@
"ignoreFailures": true "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": [ "tasks": [
{ {
"label": "Compile", // launch.jsonpreLaunchTask "type": "cppbuild",
"command": "clang++", // 使 "label": "Compile",//launch.jsonpreLaunchTask
"command": "g++",
"args": [ "args": [
"${file}", "${fileDirname}\\*.cpp",//
"-o", // a.exe "-g",//
"${fileDirname}/${fileBasenameNoExtension}.exe", "-o",
"-g", // "${fileDirname}\\${fileBasenameNoExtension}.exe"
"-Wall", // ],
"-static-libgcc", // "options": {
"-fcolor-diagnostics", "cwd": "C:/Project/mingw64/bin"//
"--target=x86_64-w64-mingw", // targetmsvc
"-std=c++17" // Cc11
], //
"type": "shell",
"group": {
"kind": "build",
"isDefault": true // falsetasks.json
}, },
"presentation": { "problemMatcher": [
"echo": true, "$gcc"
"reveal": "always", // alwayssilentneverVSC ],
"focus": false, // true使taskcc++true "group": "build",
"panel": "shared" // "detail": "编译器: C:/Project/mingw64/bin/g++.exe"
} }
// "problemMatcher":"$gcc" // 使clang) ],
} "version": "2.0.0"
]
} }

View file

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