Visual Studio code中编写和运行C语言

参考:VS code中编写和运行C语言_vscode 运行c语言-CSDN博客

1、下载、安装并验证Mingw

1.1、下载Mingw

参考:https://softdown.365xiazai.com/20241107/2651/down/2022down/5/24/mingw_v10.0.exe

可以自行百度搜索资料下载。

1.2、解压Mingw,并且配置环境变量

1.3、验证Mingw

2、在Visual Studio code安装C/C++的Code Runner和C/C++ Extension pack

3、新建项目,新建C文件,

编码,

复制代码
#include<stdio.h>
int main()
{
    printf("hello world2222");
    return 0;
}

运行C文件

点击右上角的的"Run Code",结果如下:

相关推荐
CaracalTiger2 小时前
什么是Clawdbot?Clawdbot下载、安装、配置教程(最新版Moltbot)
python·编辑器·aigc·idea·ai编程·intellij idea·agi
Leon Cheng17 小时前
Vue3 + Monaco Editor 实现智能变量编辑器:隐藏花括号的魔法
编辑器
你知道“铁甲小宝”吗丶17 小时前
VSCode使用Claude Code
vscode·ai·ai编程
浪潮IT馆18 小时前
在 VSCode 中调试 JavaScript 的 Jest 测试用例
javascript·ide·vscode
椰汁菠萝19 小时前
VSCode中properties文件读写
ide·vscode·properties
weixin_5500831520 小时前
QTdesigner配置在pycharm里使用anaconda环境配置安装成功
ide·python·pycharm
dvlinker20 小时前
C/C++编程开发工具及实用软件推荐
ide·vscode·visual studio·qt creator·c/c++·source insight·编程工具
Kazefuku21 小时前
VS Code 和Visual Studio:简单易懂的区别
ide·windows·visual studio
gsgbgxp21 小时前
通过tailscale配置ssh远程实现wsl系统VSCode编程
vscode·深度学习·ubuntu·ssh
Boxsc_midnight21 小时前
【一款支持Ollama本地部署的Visual Studio 2022 编程助手插件的编译和生成之路】解决打包安装问题
ide·visual studio·vs插件