Keil Helper Plus中文在 VS Code 中选择 Keil 工程与构建目标、查看已保存的仿真器配置,并执行编译和程序下载。 当一个文件夹里包含多个 Keil 工程,尤其是芯片 SDK 中大量同名示例时,Keil Helper Plus 会显示工程名称和部分目录路径,让你更容易找到并确认当前工程。 主要功能
环境要求
本扩展不附带 Keil 或下载器驱动。代码补全、语法检查等编辑功能可配合 Microsoft C/C++ 扩展使用。 安装与配置
也可以在 VS Code 的
请将示例路径替换为自己的安装路径。C51 工程对应的设置是 支持识别 切换仿真器后刷新在 Keil 中切换仿真器并确认后,点击 File → Save All(全部保存),等待状态栏刷新,通常无需关闭 Keil。 选项文件约每 1.2 秒检查一次。 状态栏显示的是已保存的调试器配置,不代表 USB 设备已连接。扩展不会自动切换下载器或修改工程选项。 如果 Keil 的 Utilities 配置使用了其他烧录工具,实际下载工具可能与显示的调试器名称不同。 常见问题可以使用 J-Link 下载吗? 可以通过 Keil 的下载功能使用 J-Link。实际下载器和 Flash 算法由 Keil 工程配置决定,请先确认同一工程和目标能在 Keil 中正常下载。 Keil 中能下载,VS Code 中失败怎么办? 核对两边的 Keil 路径、工程路径和目标是否一致,并在 Keil 中执行 Save All。 退出占用下载器的调试会话,再查看 输出 → Keil Helper Plus 中的具体错误。 切换了仿真器,状态栏为什么没变化? 确认已执行 Save All,而非只保存当前代码文件;同时核对两边选择的工程和目标。
配置文件缺失或暂时无法解析时,状态栏显示 能与原 Keil V 一起安装吗? 本扩展使用独立的命令和设置。两个扩展同时启用会显示两套按钮,建议只启用正在使用的一套,避免混淆或同时对同一工程执行任务。 项目来源与许可证本扩展基于 Keil V / keil-vscode 修改,其上游为 keil-assistant。主要改进包括多工程名称显示、目标选择和仿真器状态显示。 采用 MIT 许可证,保留原版权声明。许可证及第三方声明随扩展提供。 这是独立衍生版本,并非原作者、Arm/Keil 或 SEGGER 的官方发布。 EnglishSelect Keil projects and build targets, view the saved debug adapter configuration, and build or download firmware from VS Code. When a folder contains several Keil projects, especially SDK samples with identical names, Keil Helper Plus shows project names with directory context so you can identify the project you want to use. Features
Requirements
Keil and probe drivers are not included. Use an editor extension such as Microsoft C/C++ for code completion and diagnostics. Install and configure
Alternatively, add this setting to VS Code's
Replace the example path with your installation path. For C51 projects, use The extension discovers Refresh after changing the adapterAfter selecting and confirming a different adapter in Keil, choose File → Save All, then wait for the status bar to refresh. You normally do not need to close Keil. The options file is checked approximately every 1.2 seconds. The status bar shows the saved debug adapter configuration, not USB connection status. The extension does not switch adapters or modify project options. If Keil's Utilities settings select a separate programming tool, the tool used for downloading may differ from the displayed debug adapter. Frequently asked questionsCan I download with J-Link? J-Link can be used through Keil's download function. The programmer and Flash algorithms are determined by the Keil project settings. First confirm that the same project and target download successfully in Keil. Downloading works in Keil but fails in VS Code. What should I check? Check the Keil executable path, project path and target in both applications, then use Save All in Keil. End any debug session occupying the probe and read the specific error in Output → Keil Helper Plus. Why does the status bar still show the previous adapter? Use Save All rather than saving only the current source file, and check that both applications have the same project and target selected.
If the options file is missing or temporarily unreadable, the status bar shows Can I keep the original Keil V installed? The extensions have independent commands and settings. Enabling both produces two sets of buttons. Enable the one you intend to use to avoid confusion or concurrent tasks on the same project. Attribution and licenseBased on Keil V / keil-vscode, itself derived from keil-assistant. The main improvements cover project naming, target selection and saved debug adapter status. MIT licensed, with the original copyright notice preserved. License and third-party notices are included with the extension. This is an independent derivative, not an official release by the upstream authors, Arm/Keil or SEGGER. |