赞
踩
- {
- "files.encoding": "gb2312",
- "files.associations": {
- "stc15.h": "c",
- "STC15.H": "cpp",
- "servicecode.h": "c",
- "displayscreen.h": "c"
- }
- }
按ctrl+shift+P 打开Command Palette,输入Edit configurations,生成c_cpp_properties.json:
- {
- "configurations": [
- {
- "name": "Win32",
- "includePath": [
- "${workspaceFolder}/**",
- "F:\\Keil_ARM\\C51\\INC\\**"
- ],
- "defines": [
- "_DEBUG",
- "UNICODE",
- "_UNICODE",
-
- "sbit=char",
- "code=const",
- "xdata=",
- "data=",
- "sfr=char",
- "interrupt=",
- "bit=u8"
-
- ],
- "windowsSdkVersion": "10.0.18362.0",
- "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe",
- "cStandard": "c17",
- "cppStandard": "c++17",
- "intelliSenseMode": "windows-msvc-x64"
- }
- ],
- "version": 4
- }

不需要改环境变量什么的,1.56.2版本安装完自动安装环境变量,点选就行了,我暂时还没重启,但是写代码没问题
注意这里改成自己的文件夹
左边写代码,右边编译。
主要是为了自动提示,自动补全。
参考:https://blog.csdn.net/Lennon8_8/article/details/113183847
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。