📌  相关文章
📜  Visual Studio 代码包含路径不起作用 c++ 代码示例

📅  最后修改于: 2022-03-11 14:44:56.229000             🧑  作者: Mango

代码示例1
// task.json
// add this line (with your path) '"-Ipath/to/my/include/files",' to first line in "args"[]
// example:
{
      "version": "2.0.0"
    "tasks": [
        {
              //...
            "args": [
                  "-I${workspaceFolder}\\Headers",
                "-g",
                "${file}",
                "-o",
                "${fileDirname}\\${fileBasenameNoExtension}.exe"
            ],
              //...
            "options": {
                "cwd": "${fileDirname}"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "detail": "Task generated by Debugger."
        }
    ],
}