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

相关推荐
言之。21 分钟前
Claude Code IDE 集成工作原理详解
ide·人工智能
悠悠子衿121381 小时前
Claude+VSCODE配置git导致频繁弹出git bash 的CMO窗口解决方法
ide·git·vscode
大志哥1232 小时前
IntelliJ IDEA父子工程中导入公网远程备份项目到新目录
java·ide·intellij-idea
梁萌2 小时前
idea使用AI插件(CodeGeeX)
java·ide·ai·intellij-idea·插件·codegeex
wqfhenanxc3 小时前
vscode/cursor 远程Linux基础命令
linux·ide·vscode
Lv11770084 小时前
Visual Studio中的常量和只读变量
ide·笔记·c#·visual studio
Balding Curry4 小时前
vscode快速添加插件的3种方式
ide·vscode·编辑器
yyovoll4 小时前
循环知识点介绍 -蓝桥杯
jvm·ide·java-ee
Clarence Liu5 小时前
MacOS 在Trae IDE中构建现代C++开发环境:从新手到高效的完整指南
c++·ide·macos
木楚5 小时前
在idea中构建传统ssm框架的步骤和方式
java·ide·intellij-idea