tasks.json 959 B

12345678910111213141516171819202122232425262728293031
  1. {
  2. "tasks": [
  3. {
  4. "type": "cppbuild",
  5. "label": "C/C++: gcc.exe 生成活动文件",
  6. "command": "C:\\Program Files\\mingw64\\bin\\gcc.exe",
  7. "args": [
  8. "-fdiagnostics-color=always",
  9. "-g",
  10. //"${file}",
  11. "*.c",//当前文件夹所有的.c文件
  12. "include/*.c", // 包含include文件夹下的.c文件
  13. "-o",
  14. //"${fileDirname}\\${fileBasenameNoExtension}.exe"
  15. "${fileDirname}\\build\\main.exe"//生成的可执行程序
  16. ],
  17. "options": {
  18. "cwd": "${fileDirname}"
  19. },
  20. "problemMatcher": [
  21. "$gcc"
  22. ],
  23. "group": {
  24. "kind": "build",
  25. "isDefault": true
  26. },
  27. "detail": "调试器生成的任务。"
  28. }
  29. ],
  30. "version": "2.0.0"
  31. }