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",结果如下:

相关推荐
小阳睡不醒3 小时前
vim 练习题
linux·编辑器·vim
向宇it3 小时前
【unity游戏开发——编辑器扩展】使用EditorGUI的EditorGUILayout绘制工具类在自定义编辑器窗口绘制各种UI控件
开发语言·ui·unity·c#·编辑器·游戏引擎
和平宇宙4 小时前
vscode extention踩坑记
ide·vscode·编辑器
yinhezhanshen5 小时前
使用VSCode编辑Markdown+PlantUml
ide·vscode·编辑器
kooboo china.8 小时前
在UI 原型设计中,交互规则有哪些核心要素?
ui·编辑器·交互
慢一点会很快8 小时前
【Tools】VScode使用CMake构建项目
ide·vscode·编辑器
Mckay8810 小时前
android studio导入项目
android·ide·android studio
threelab10 小时前
05.three官方示例+编辑器+AI快速学习three.js webgl - animation - skinning - ik
人工智能·学习·编辑器
threelab10 小时前
04.three官方示例+编辑器+AI快速学习webgl_animation_skinning_additive_blending
人工智能·学习·编辑器
ONLYOFFICE11 小时前
集成 ONLYOFFICE 与 AI 插件,为您的服务带来智能文档编辑器
人工智能·ai·编辑器·onlyoffice·文档编辑器·文档预览·文档协作