作者:手机用户2502921201 | 来源:互联网 | 2024-09-29 07:31
篇首语:本文由编程笔记#小编为大家整理,主要介绍了Visual Code配置环境变量相关的知识,希望对你有一定的参考价值。
**1.下载vscode**
(1)百度搜索vscode一般是第一个

(2)进入第一个,选择Other downloads


(4)我选择.zip版的免安装

(5)打开CodeBlocks里面的MinGW后面配置环境变量有用,记住后面有配置环境变量

(7)配置Visual Code,将插件放在安装目录,默认是放在了C盘下面的,解压缩之后不要打开Visual Code要进行配置

**2.下载MinGW,去CodeBlocks官网下载**
(2)进入第一个下载

(2)进入点击Downloads
(3)找到Binary releases
(4)根据系统位数,下载带MinGW的CodeBlocks
(5)下载免安装版的,到时候解压缩就可以了
(6)解压缩

**3.MinGW环境变量配置**
(1)找到此电脑

(2)点击高级系统设置->环境变量


(3)然后一直点确定,按win+r进入cmd验证配置的环境变量,显示相关的信息就是成功的


**4.vscode下载相应插件**
(1)打开vscode搜索插件chinese,c++,code runner



(2)配置插件配置Code Runner


(3)配置C++






**5.编写测试代码是否配置成功**
