CMake:build或rebuild不编译了,弹出:> [Add a new preset] ,
提示输入发现settings.jsons设置有问题
{
"workbench.colorTheme": "Default Light+",
"cmake.pinnedCommands": [
"workbench.action.tasks.configureTaskRunner",
"workbench.action.tasks.runTask"
],
"workbench.editor.splitInGroupLayout": "vertical",
"workbench.editor.tabSizing": "shrink",
"workbench.colorCustomizations": {
"[Default Light+]": {
"editor.background": "#cce8cf",
"sideBar.background": "#cce8cf4f",
"activityBar.background": "#000000",
"panel.background": "#b8b7b76b",
"terminal.background": "#cce8cf",
},
},
"go.useLanguageServer": true,
"window.zoomLevel": 1,
"cmake.options.statusBarVisibility": "visible",
"cmake.useCMakePresets": "always"
}
删除以下一行就能编译了:
"cmake.useCMakePresets": "always"