Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Su All in OneNew to Visual Studio Code? Get it now.
Su All in One

Su All in One

lys

|
145 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Su All in One !

一款让 SU.js 框架贴近现代化开发体验的插件。

Features

安装插件后需要重启 IDE,进入项目后当右下角提示 Scan Finished 则代码插件初始化完成,可正常使用。

  • Syntax-highlighting/语法高亮
  • Snippet/代码片段
  • IntelliSence/智能提示
  • Definition/定义跳转

Syntax-highlighting

view.html 文件的 html 属性高亮(widget, id),部分主题下颜色的区分度可能会不太如人意,可以切换其他主题尝试下效果。

Snippet

符号 ⇥ 代表着按键 TAB。

Trigger Content
modu⇥ 创建 module 的初始化代码模板
module⇥ 创建 module 的初始化代码模板
mode⇥ 创建 model 的初始化代码模板
model⇥ 创建 model 的初始化代码模板
sto⇥ 创建 store 的初始化代码模板
store⇥ 创建 store 的初始化代码模板

快捷键 ctrl + shift + p,弹出的窗口内输入 su:Create Store 或 su:Create Model 回车,在弹出的 inputbox 内输入数字,即可生成对应数字数量的 fields 的初始化代码模板。

IntelliSence

文案智能提示

当鼠标悬停在如 $.su.CHAR.TEXT_MESSAGE.HELLO_WORLD 的后半部分时,会显示 src/locale/en_US/lan.js 内的文案。

Definition

  • deps、views、stores、,models 等 module options 内声明的配置,可以通过 F12 跳转到对应的文件内。
  • module 内的 me.xxx 和 this.xxx 跳转
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft