Yaozhi YeA personal study

GUIDED SETUP · LEARNING NOTES

Set up VS Code for C/C++, one checkpoint at a time

Choose your system, keep the source instructions and explanations together, and verify each stage before moving on.

Start guided reading
Choose platform→Follow one step→Check the result→Continue safely
Selected routeWindows 10 / 11

依次准备路径、安装 MinGW-W64、连接 VS Code 的构建与调试配置。路线较长,但每一步都有独立检查点与故障分支。

The supplied tutorials are in Chinese; technical steps below stay source-faithful.

STEP 01 · Windows 10 / 11

Windows PDF · 安装准备章节

安装前检查

确认 Windows 用户名及计划使用的代码路径不含中文、空格或特殊字符。

From the source
  1. 原教程特别提示中文用户名可能引发编程环境报错。
  2. 代码文件夹路径应避免中文、空格及多数特殊字符。
Why it matters

部分编译与调试工具对路径处理不一致,先规避可减少后续定位成本。

Detailed guidance2
只检查,不贸然修改系统账户
  1. 按 Win + R,输入 cmd 并回车;命令提示符开头通常会显示当前用户目录。
  2. 若用户名含中文,先记录情况,不要直接重命名用户文件夹或修改注册表。
  3. 无论用户名如何,都为课程代码准备一个纯英文、无空格的独立目录。
如果以前配置过 C/C++ 环境
  1. 先运行 gcc --version,记录是否已有旧工具链。
  2. 暂时不要删除任何 Path;完成新安装后再根据版本输出判断顺序。
  3. 旧工作区中的 .vscode 可能指向旧路径,故障恢复步骤会单独说明。
建议练习目录path
D:\vscode_c

没有 D 盘时可使用 C:\vscode_c;后续示例以你实际打开的文件夹为准。

Success check

已确定一个简单的英文路径,例如 D:\vscode_c。

Before continuing

修改 Windows 用户名风险较高,本页不展开或自动引导;不要直接重命名用户目录或修改注册表。

SOURCE SCOPE · MATERIAL BOUNDARY

What this page does—and does not—contain

Included

The procedural content of the supplied macOS 5-page and Windows 31-page tutorials, reorganized around actions, reasons, and visible checks.

Not distributed

Bundled installers, VSIX packages, WinLibs archives, and the original Word/PDF files remain private source material.

Version note

Screens and package versions can change. Prefer stable official releases and use the checkpoints rather than matching screenshots pixel for pixel.