VScode C/C++环境配置
1. Download
Visual Studio Code
msys2

2. Setup
2.1 msys2
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
enter enter

y enter

编辑系统环境变量–>环境变量–>用户环境变量–>Path–>新建–>C:\msys64\ucrt64\bin
cmd
gcc --version
g++ --version
gdb --versio
C:\Users>gcc --version
gcc (Rev8, Built by MSYS2 project) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.C:\Users>g++ --version
g++ (Rev8, Built by MSYS2 project) 15.2.0
Copyright (C) 2025 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.C:\Users>gdb --versio
GNU gdb (GDB) 16.3
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
C/C++ 编译环境安装完毕
2.2 VScode
Chinese (Simplified)
C/C++
3. test

json

