Skip to content

Instantly share code, notes, and snippets.

@zsnmwy
Created March 18, 2022 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zsnmwy/ea376f6e28f31a89da3af29ed6d9fead to your computer and use it in GitHub Desktop.
Save zsnmwy/ea376f6e28f31a89da3af29ed6d9fead to your computer and use it in GitHub Desktop.
{
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe 生成活动文件",
"command": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-posix-seh-rt_v6-rev0\\mingw64\\bin\\gcc.exe",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${workspaceFolder}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
},
"detail": "调试器生成的任务。"
},
{
"type": "shell",
"dependsOn": ["C/C++: gcc.exe 生成活动文件"],
"dependsOrder": "sequence",
"label": "运行程序",
"command": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"group": {
"kind": "build",
"isDefault": true
},
}
],
"version": "2.0.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment