一.ubuntu下安装vscode

如下图所示
Ubuntu中用VScode编译调试
Ubuntu中用VScode编译调试

二.环境搭配

1.安装c++
Ubuntu中用VScode编译调试

2.打开文件并进行如下操作
(1)选择文件
Ubuntu中用VScode编译调试
(2).环境选择
Ubuntu中用VScode编译调试
(3)修改生成的 launch.json 文件
Ubuntu中用VScode编译调试
Ubuntu中用VScode编译调试
(4)修改生成的 task.json 文件

Ubuntu中用VScode编译调试

Ubuntu中用VScode编译调试
三.编译调试
Ubuntu中用VScode编译调试
Ubuntu中用VScode编译调试

相关文章: