vscode 添加头文件路径的方法

          

配置IntelliSense  

扩展程序会根据当前系统环境配置基本信息,因此有可能配置不完整,这时需要通过生成c_cpp_properties.json文件来配置缺少的信息:

ctrl+shift+P打开Command Palette,运行C/Cpp: Edit configurations...生成c_cpp_properties.json:

 
"includePath": [
                "${workspaceFolder}/**",
                "D:\\ite_sdk\\sdk\\**",
                "D:\\ite_sdk\\openrtos\\**",
                "C:\\ITEGCC\\*"
 

构建应用程序

如果要构建应用程序,则需要生成tasks.json文件:

Ctrl+Shift+P -> Tasks: Configure Tasks… -> Create tasks.json file from templates -> Others.

https://www.cnblogs.com/Elvis827/p/9045071.html

 

posted @ 2020-02-20 11:05  jie_liu2  阅读(13720)  评论(0编辑  收藏  举报