当前位置:   article > 正文

VScode配置Keil c51_vs for keil配置

vs for keil配置

0. 打开源文件

 

 

1. setting.json

  1. {
  2. "files.encoding": "gb2312",
  3. "files.associations": {
  4. "stc15.h": "c",
  5. "STC15.H": "cpp",
  6. "servicecode.h": "c",
  7. "displayscreen.h": "c"
  8. }
  9. }

2. c_cpp_properties.json

按ctrl+shift+P 打开Command Palette,输入Edit configurations,生成c_cpp_properties.json:

 

  1. {
  2. "configurations": [
  3. {
  4. "name": "Win32",
  5. "includePath": [
  6. "${workspaceFolder}/**",
  7. "F:\\Keil_ARM\\C51\\INC\\**"
  8. ],
  9. "defines": [
  10. "_DEBUG",
  11. "UNICODE",
  12. "_UNICODE",
  13. "sbit=char",
  14. "code=const",
  15. "xdata=",
  16. "data=",
  17. "sfr=char",
  18. "interrupt=",
  19. "bit=u8"
  20. ],
  21. "windowsSdkVersion": "10.0.18362.0",
  22. "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe",
  23. "cStandard": "c17",
  24. "cppStandard": "c++17",
  25. "intelliSenseMode": "windows-msvc-x64"
  26. }
  27. ],
  28. "version": 4
  29. }

不需要改环境变量什么的,1.56.2版本安装完自动安装环境变量,点选就行了,我暂时还没重启,但是写代码没问题

注意这里改成自己的文件夹

 

左边写代码,右边编译。

主要是为了自动提示,自动补全。

 

 

参考:https://blog.csdn.net/Lennon8_8/article/details/113183847

本文内容由网友自发贡献,转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号