VScode安装编译运行调试C/C++
Posted 铢积寸累 日就月将
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VScode安装编译运行调试C/C++相关的知识,希望对你有一定的参考价值。
VScode安装编译运行调试C/C++(一)
Windows10 平台下VScode的安装以及C的调试编译。
VScode的安装
1、官网下载VScodehttps://code.visualstudio.com/
User Installer 与System Installer的区别
•User Installer :主要是为当前用户安装,安装之后其他用户登陆电脑系统之后将无法使用;•System Installer:为电脑上所有的用户安装。•由于有些配置只能再System Installer版本上进行,同时据说User Installer版本有的时候会有一些问题,这里笔者安装的是System Installer版本。
2、安装过程很简单,关键是这里的任务,可以根据自己的需要来选择,但是下方的“添加到PATH”建议添加。
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/e20bd010c6754c35858ebf017ffb9832.jpg)
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/7cfe0dc75e254092ab881ad074fe10ec.jpg)
•Chinese(simplified)•C/C++ Compile Run•Code Runner
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/23747efe1ed14d28af9e17d5038769e4.jpg)
mingw-w64的安装
说明:
x86_64/i686:电脑操作系统位数
win32/posix:操作系统接口协议
seh/sjlj:异常处理模型
2.将下载好的mingw-w64压缩包解压到合适的位置,这个位置即是安装位置。
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/766a1bda35da4c97bbeff437e42e2342.jpg)
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/e50ed68fa05c441db0f91ce6d1db02d8.jpg)
PATH
然后编辑
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/1c5e070dd9ee43a9bd20f4ad7f9741db.jpg)
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/01d98591b29e4d5abaa6a0216faa94e4.jpg)
![null VScode安装编译运行调试C/C++(一)](https://image.cha138.com/20210621/cdca11a76dd4460292799b55af2c3443.jpg)
以上是关于VScode安装编译运行调试C/C++的主要内容,如果未能解决你的问题,请参考以下文章