0.打开VS-Code,打开所在的工程
1. 首先在工程目录下新建 .vscode 文件夹
2. 按Ctrl+Shift+P,输入 C/C++ E,选择如图所示的项目,即自动生成配置文件。
3. 配置文件名字为:c_cpp_properties.json 代码如下:
1 { 2 "configurations": [ 3 { 4 "name": "Win32", 5 "includePath": [ 6 "${workspaceFolder}/**" 7 ], 8 "defines": [ 9 "_DEBUG", 10 "UNICODE", 11 "_UNICODE" 12 ], 13 "compilerPath": "G:\\Mingw\\bin\\gcc.exe", 14 "cStandard": "c17", 15 "cppStandard": "gnu++14", 16 "intelliSenseMode": "windows-gcc-x86" 17 } 18 ], 19 "version": 4 20 }
标签:gcc,14,配置文件,VSCode,手动,UNICODE,工程 From: https://www.cnblogs.com/FBsharl/p/17294446.html