Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>easyCore ScriptNew to Visual Studio Code? Get it now.
easyCore Script

easyCore Script

easycore-script

|
1 install
| (0) | Free
为 easyCore YAML 配置中的脚本文本块提供补全和轻量诊断。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

easyCore Script

这是一个面向 easyCore 配置编写的 VSCode 插件,用于在 YAML 文件中的 easyCore 脚本文本块里提供补全和轻量诊断。

功能

  • easyCore 脚本关键字补全。
  • method.xxx(...) 方法补全。
  • method 参数 snippet。
  • easyCore 内置变量补全。
  • easyCore 脚本文本块语法高亮。
  • actions: 下的事件 key 补全。
  • Functions: 下的常用函数 key 补全。
  • 未知 method.xxx(...) 诊断。
  • 字符串、圆括号、花括号、中括号未闭合诊断。
  • 保守的缺分号提示。

使用示例

在 easyCore 的 YAML 配置中:

xxx_button:
  actions:
    TouchUp: |-
      method.message('hello');

输入 method.mes 可以补全为:

method.message('${1:消息}');

在 actions: 下输入 Tou 可以补全为:

TouchUp: |-

在 Functions: 下输入 op 可以补全为:

open: |-

诊断示例

xxx_button:
  actions:
    TouchUp: |-
      method.notExists();
      if (true) {
      method.message('hello')

插件会提示:

  • 未知方法 notExists。
  • { 未闭合。
  • method.message('hello') 可能缺少分号。

注意

这个插件只处理 easyCore 脚本文本块,不会接管整个 YAML 文件。

第一版诊断是轻量检查,不是完整解释器。它的目标是抓明显错误,不是替代 easyCore 运行时。

本地开发

安装依赖:

npm install

编译:

npm.cmd run compile

调试:

用 VSCode 打开插件目录,按 F5 启动 Extension Development Host。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft