如何将VS Code作为keil5的外部编辑器

学习STM32和51单片机时都遇到Keil编辑器太难使用的情况
现在有一种可以使用外部编辑器的方法:

先下载VS Code,安装好:
如何将VS Code作为keil5的外部编辑器
打开keil页面:
如何将VS Code作为keil5的外部编辑器
这样配置好:

如何将VS Code作为keil5的外部编辑器
记得选择的Command是Code.exe,我不小心选成Start-up!
正常新建工程:
![在这里插入图片描述](https://img-blog.csdnimg.cn/20200709003449484.png?x-oss-process=image/wat如何将VS Code作为keil5的外部编辑器
在VS Code内完成编辑
如何将VS Code作为keil5的外部编辑器
返回keil5出现如图所示窗口:
如何将VS Code作为keil5的外部编辑器
如何将VS Code作为keil5的外部编辑器