{"repo":"FadingLight9291117/vscode-arkts","free":true,"listed":false,"github":"https://github.com/FadingLight9291117/vscode-arkts","clone":"git clone https://github.com/FadingLight9291117/vscode-arkts.git","description":"ArkTS Language Support for Visual Studio Code","language":"TypeScript","stars":27,"topics":["arkts","ets","language-server","vscode-extension","agent","ai","mcp"],"license":"MIT","category":"mcp-servers","readme_excerpt":"ArkTS Language Support for Visual Studio Code 为 Visual Studio Code 提供 ArkTS（鸿蒙应用开发语言）完整语言支持：标题栏一键编译/运行、LSP 驱动的补全与诊断，并内置 20 个 MCP 工具，让 Claude、Copilot、Cursor、OpenCode 等 AI 助手直接操作 HarmonyOS 设备和项目。 前置要求 - HarmonyOS DevEco Studio 已安装， hdc 命令在 PATH 中可用 - 在 VS Code 设置中配置 ets.sdkPath （指向 DevEco Studio 下的 sdk/default/openharmony ） 重要 ： ets.sdkPath 未配置时语言服务器不会启动，补全、诊断、跳转等功能不可用。 按需安装 ：插件体积仅约 545 KB——语言服务器（ @arkts/language-server ）在首次激活时自动安装到扩展数据目录，编译/运行所需的 devecocli 也会在需要时自动安装，无需手动下载。 快速开始 1. 安装插件 2. 打开设置（ Ctrl+, ），搜索 ets.sdkPath ，填入 OpenHarmony SDK 路径 3. 打开任意 .ets 文件，插件自动激活并安装语言服务器 4. 点击编辑器标题栏的「编译」「运行」按钮，一键构建并运行应用 需要设备操作时，确保已连接 HarmonyOS 设备或模拟器，然后通过命令面板（ Ctrl+Shift+P → 输入 ArkTS ）访问设备管理功能。 功能特性 一键编译/运行 - 打开 .ets 文件后，编辑器标题栏显示「编译」「运行」按钮 - 编译 → devecocli build ； 运行 → devecocli run （编译 + 安装 + 启动），输出实时写入 \"ArkTS Run\" 面板 - 自动识别项目根（从当前文件向上找 oh-package.json5 ，无需 hvigorw） - 首次使用自动安装 devecocli （也可通过命令 ArkTS: 安装 deveco-cli 工具 手动安装） 语言支持（LSP 驱动） - 智能代码补全、悬停文档、实时诊断 - 跳转到定义（ F12 ）、查找引用（ Shift+F12 ） - 文档格式化 - ArkTS Linter 规范检查（可配置版本或关闭） - $r() 资源引用验证 - 代码片段：组件模板（ entry 、 comp 、 compv2 ）、装饰器（ state 、 local 、 param ）、UI 组件（ col 、 row 、 list ）等 - JSON5 语法高亮（ oh-package.json5 、 module.json5 、 build-profile.json5 等） 支持的装饰器 - V1 ： @Entry 、 @Component 、 @State 、 @Prop 、 @Link 、 @Provide / @Consume 、 @Watch 、 @Observed / @ObjectLink 、 @Builder / @BuilderParam 、 @Styles / @Extend 等 - V2 （API 12+）： @ComponentV2 、 @Local 、 @Param 、 @Monitor 、 @Computed 、 @Provider / @Consumer 、 @ObservedV2 / @Trace 等 MCP 工具（AI 集成","default_branch":null,"files":null,"tree":[],"storefront":"/r/FadingLight9291117","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/FadingLight9291117/vscode-arkts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}