vscode配置c++环境
vscode配置c++环境
1.配置c++ IntelliSense
使用F1 快捷键打开命令选项,输入C/C++:Edit configuration,然后在.vscode文件夹自动生成c_cpp_properties.json配置文件。
2.launch.json配置文件
在debug界面中添加配置,然后选c++(gdb/lgdb)选项,然后自动生成launch.json配置文件,该配置文件主要用于调试时的加载控制。
3.tasks.json配置文件
在命令窗口中输入task,选择task:configure task选项,生成task.json配置文件。
注意:task.json中的label属性值要和launch.json中preLaunchTask属性值相同。
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.



