1234567891011121314151617181920212223242526272829303132333435363738 |
- {
- "tasks": [
- {
- "type": "shell",
- // 此处type的属性问题下面详说
- "label": "C/C++: g++ build active file",
- "command": "/usr/bin/g++",
- "presentation": {
- "echo": true,
- "reveal": "always",
- "focus": false,
- "panel": "shared",
- "showReuseMessage": true,
- "clear": false
- },
- "args": [
- "-g",
- "${file}",
- "-std=c++17",
- "-o",
- "${workspaceRoot}/out/${fileBasenameNoExtension}"
- ],
- // 此处与launch.json中类似,若不需要则删去 /out
- "options": {
- "cwd": "${workspaceFolder}"
- },
- "problemMatcher": [
- "$gcc"
- ],
- "group": {
- "kind": "build",
- "isDefault": true
- },
- "detail": "Task generated by Debugger."
- }
- ],
- "version": "2.0.0"
- }
|