Ubuntu 系统使用 Visual Studio Code
1、前景知识介绍
本篇博客介绍如何在 Ubuntu 20.04 环境下,配置 Visual Studio Code,从而使用 GCC (C++ compiler (g++)) 和 GDB (debugger)。
这里介绍一下,GCC 表示 GNU Compiler Collection 编译器集合; GDB 是 GNU debugger。
GCC,它可以编译C、C++、JAV、Fortran、Pascal、Object-C等语言。gcc 是 GCC 中的 GNU C Compiler(C 编译器),g++ 是GCC中的GNU C++ Compiler(C++编译器)。
gcc 和 g++ 存在些许的区别,想要了解可以查看博客
回到顶部
2、预先准备条件
在创建项目之前,我们需要准备 3 个工作。
安装 VS Code
在 VS Code 中安装 C++ extension
确保 Ubuntu 中安装了 GCC(GNC Compiler Collection)
安装 VS Code 去官网 下载 .deb,将下载完成的 .deb 文件使用 dpkg -i 文件名.deb 安装即可。