扩展程序会根据当前系统环境配置基本信息,因此有可能配置不完整,这时需要通过生成c_cpp_properties.json
文件来配置缺少的信息:
ctrl+shift+P
打开Command Palette,运行C/Cpp: Edit configurations...
生成c_cpp_properties.json:
如果要构建应用程序,则需要生成tasks.json
文件:
Ctrl+Shift+P -> Tasks: Configure Tasks… -> Create tasks.json file from templates -> Others.
https://www.cnblogs.com/Elvis827/p/9045071.html
原文:https://www.cnblogs.com/zidingliu/p/12334807.html