]
}]
}
新的tasks.json
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file’s basename
// ${fileDirname}: the current opened file’s dirname
// ${fileExtname}: the current opened file’s extension
// ${cwd}: the current working directory of the spawned process
{
“version”: “2.0.0”,
“tasks”: [
{
“label”: “build”,
“type”: “shell”,
“group”: {
“kind”: “build”,
“isDefault”: true
},
“presentation”: {
“echo”: true,
“reveal”: “always”,
“focus”: false,
“panel”: “shared”
},
“windows”: {
“command”: “g++”,
“args”: [
“-ggdb”,
“”KaTeX parse error: Expected group as argument to '\"' at end of input: … "\"{fileDirname}\${fileBasenameNoExtension}.exe""
]
}
}
]
}
懒得自己配置或自己配置出现不明问题的朋友可以点这里:
[【VSCode】Windows下VSCode便携式c/c++环境](https://bbs.youkuaiyun.com/forums/4304bb5a486d4c3ab8389e65ecb71ac0)
<http://blog.youkuaiyun.com/c_duoduo/article/details/52083494>
下载解压即可食用。
*————————– 2017.06.10 更新 (已过时)————————-*
**便携版已更新,[点此获取便携版](https://bbs.youkuaiyun.com/forums/4304bb5a486d4c3ab8389e65ecb71ac0)**
**用于cpptools插件的配置文件更新**
更新的launch.json
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file’s basename
// ${fileDirname}: the current opened file’s dirname
// ${fileExtname}: the current opened file’s extension
// KaTeX parse error: Expected '}', got 'EOF' at end of input: … "pro