- src\ 存放代码文件
- output\ 编译过程生成的文件
- environment\ 51启动文件和LIB静态连编文件
"includePath": [
"${workspaceFolder}/**",
"D:/Program Files/Keil5/C51/INC/**",
],
将includePath中的Keil的路径修改为你自己的
"args": [
"\"${workspaceFolder}\"",
"\"${workspaceFolder}\\src\"",
"\"${workspaceFolder}\\environment\"",
"main"
],
主要修改第四个参数"main",这个相当于Keil中的工程名
@echo off
set KEIL_BIN_FOLDER=D:\Program Files\Keil5\C51\BIN
将KEIL_BIN_FOLDER修改为你的C51\BIN的地址
所有的代码文件必须放到src根目录下面, 编译时,点击终端-运行生成任务