目录
前言
一、VSCode的安装
二、MinGW编译器下载和配置
2.1?MinGW编译器下载Downloads - MinGW-w64https://www.mingw-w64.org/downloads/
2.2 MinGW的安装
2.3 在系统环境变量里配置path变量
2.4 检查配置时候成功
三、VSCode插件配置
3.1?Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code
3.2?C/C++ for Visual Studio Code
3.3?vscode-icons
3.4?C++ Intellisense
3.5?Code Runner
前言
????????Visual Stuio Code 是微软推出的一款编辑器,简称VSCode。VSCode 有 Windows、Linux 和 macOS 三个版本的,是一个跨平台的编辑器。下面就来介绍一下VSCode的安装以及配置C/C++的编译环境,使用的系统是Window 11。
一、VSCode的安装
Visual Studio Code 下载地址 https://code.visualstudio.com/? ? ? ? 下载界面如下:
? ?

? ? ? ? ?在实际的下载过程种,由于一些大家都懂的原因,下载速度非常慢。所以我们可以选着使用另一个网站下载。 FileHorse.com / Free Software Download for Windows https://www.filehorse.com/? ? ? ? 在这个网站收录了一些软件的镜像,下载速度比官网上快了不少,有兴趣的可以使用。

? ? ? ??

????????下载完成后,点击安装,傻瓜式安装。
? ? ? ? 需要注意的是:

二、MinGW编译器下载和配置


? ? ? ? ?
2.2 MinGW的安装
????????



? ? ? ?
?????????点击Next之后就是一个过程非常漫长的下载过程,注意非常久。
? ?

????
?????
2.3 在系统环境变量里配置path变量
?????????

?
2.4 检查配置时候成功
? ? ? ? 在我的电脑里MinGW的安装bin目录下,输入cmd.
? ? ? ? ? ? ? ? 输入 g++ -v

三、VSCode插件配置
? ? ? ? VSCode插件可以说是VSCode的一大特点,里面有很多的插件,下面就来安装几个对于C/C++比较基本的插件。
3.1?Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code

? ? ? ? ?这个插件的作用很简单,汉化。
3.2?C/C++ for Visual Studio Code

????????来自微软官方的 C/C++ 插件,必备的插件,如果不安装,代码无法跳转,也没有自动补全。
3.3?vscode-icons
? ? ? ? ? ? ? ? 可以是VSCode主题更好看一些。
3.4?C++ Intellisense
????????

????????对官方工具的补充,对以下工具功能增强
????????跳转到定义;
????????代码自动补全;
????????查找代码引用;
3.5?Code Runner
????????
? ? ? ? 方便运行代码。
|