最新教程:ubuntu下学会搭载vscode C++编译环境
首先最重要的还是要参考官网教程
https://code.visualstudio.com/docs/cpp/introvideos-cpp
在配置过程中要生成3个json文件
① tasks.json : 编译器编译任务配置文件 ;
② launch.json : debug 配置文件 ;
③ c_cpp_properties.json : IntelliSense配置文件 ;
c_cpp_properties.json创建: 按快捷键Ctrl + Shift + P快速搜索框,然后搜索Edit Configurations,可以选择UI或者直接编辑json文件
tasks.json创建:点击路径:Termial -》 Configure Default Build Task
launch.json: 教程里只教了怎么用这个做debug,创建路径Run -》Add Configuration,
下面链接的这个博客,写的比较清晰。https://blog.csdn.net/qq_59084325/article/details/125662393

浙公网安备 33010602011771号