在VScode中打开setting.json 文件
刚打开时候是这样子的:
{
"files.associations": {
"bitset": "cpp",
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"*.tcc": "cpp",
"chrono": "cpp",
"complex": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"list": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"ratio": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"memory": "cpp",
"new": "cpp",
"ostream": "cpp",
"numeric": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"cfenv": "cpp",
"cinttypes": "cpp",
"utility": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"string": "cpp"
}
}
打开 setting.json 把下面的配置多出来的项目复制粘贴进来就可以了即可。
注意:配置中的 “files.associations”: 这一项是下面的配置的最后一项,把这项之前的插入进该配置中就可以了。
{
"doxdocgen.generic.paramTemplate": "@param[in] {param} ",
"todo-tree.highlights.defaultHighlight": {
"icon": "alert",
"type": "text",
"foreground": "red",
"iconColour": "green"
},
"todo-tree.general.tags": [
"?",
"!",
" Step ",
"TODO"
],
"todo-tree.highlights.customHighlight": {
" Step ": {
"foreground": "#7CFC00",
"icon": "question",
"iconColour": "green",
"type": "text-and-comment",
"hideFromTree": true
},
"?": {
"foreground": "yellow",
"icon": "question",
"iconColour": "yellow",
"type": "text-and-comment"
},
"!": {
"foreground": "red",
"icon": "issue-opened",
"iconColour": "red",
"type": "text-and-comment"
},
"TODO": {
"foreground": "#B62599",
"icon": "question",
"iconColour": "red",
"type": "text-and-comment"
}
},
"todo-tree.general.revealBehaviour": "highlight todo",
"todo-tree.tree.showCountsInTree": true,
"todo-tree.filtering.excludeGlobs":[
"**/*.txt",
"**/*.md"
],
"files.associations": {
"*.cc": "cpp",
"vector": "cpp",
"thread": "cpp",
"mutex": "cpp",
"*.tcc": "cpp",
"deque": "cpp",
"list": "cpp",
"string": "cpp"
}
}