tasks.json 873 B

12345678910111213141516171819202122
  1. {
  2.     "version": "2.0.0",
  3.     "tasks": [
  4.         {
  5.             "type": "shell",
  6.             "label": "build++.exe g file", //这里注意一下,见下文
  7.             "command": "C:\\MinGW\\bin\\g++.exe",
  8.             "args": [
  9.                 "-g",
  10.                 "${file}",
  11.                 "-o",
  12.                 "${fileDirname}\\${fileBasenameNoExtension}.exe"
  13.             ],
  14.             "options": {
  15.                 "cwd": "C:\\MinGW\\bin"
  16.             },
  17.             "problemMatcher": [
  18.                 "$gcc"
  19.             ]
  20.         }
  21.     ]
  22. }