【发布时间】:2015-10-06 16:29:59
【问题描述】:
如何为 c++ 配置tasks.json?
当我使用默认配置并运行 c++ 代码时,它给了我:
Failed to launch external program tsc HelloWorld.ts.
spawn tsc ENOENT
【问题讨论】:
如何为 c++ 配置tasks.json?
当我使用默认配置并运行 c++ 代码时,它给了我:
Failed to launch external program tsc HelloWorld.ts.
spawn tsc ENOENT
【问题讨论】:
这是我的 tasks.json。我在某个地方找到了它,并且使用 Make 对我来说效果很好。
{
"version": "0.1.0",
"command": "make",
"isShellCommand": true,
"tasks": [
{
"taskName": "Makefile",
// Make this the default build command.
"isBuildCommand": true,
// Show the output window only if unrecognized errors occur.
"showOutput": "always",
// No args
"args": ["all"],
// Use the standard less compilation problem matcher.
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}
]
}
【讨论】: