更新时间:2022-02-23 08:12:57
-I
标志在args
属性下指定tasks.json
中的包含路径.tasks.json
, under the args
property, using the -I
flag.{
"tasks": [
{
"type": "shell",
"label": "gcc build active file",
"command": "/usr/bin/gcc",
"args": [
"-g",
"-Wall",
"-Werror",
"-Wextra",
"-o0",
"-I${workspaceFolder}/inc",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
},
}
],
"version": "2.0.0"
}