Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>heaven code helperNew to Visual Studio Code? Get it now.
heaven code helper

heaven code helper

nilu

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

特性

  • 💬 为heaven 组件及属性显示对应文档
  • ⚡️ 自动插入组件 handler
  • 🗂 支持v2.0.0版本文档(即将支持v1.1.1)
  • 🌐 支持中文文档

功能

更改工作区版本

  1. ⌘ + shift + P (macOS), Ctrl + shift + P (Windows)
  2. 输入 heavenHelper: set heaven version of current workspace
  3. 选择当前工作区的版本

悬浮提示组件 props 表格

  • 悬浮在组件上显示官方文档的组件详情
  • 提供链接直接跳转到 heaven 的官方文档页面

悬浮提示 props 详情

  • 悬浮在 props 上显示官方文档的 props 详情

自动插入 method handler

  • 触发 ! 自动插入带默认前缀的 handler(默认前缀预置为 handle,可配置)
  • 触发 ~ 在提示输入 handler name 后插入
  • 暂时不会为 TypeScript 自动添加类型标注
  • class component 插入的模板为
this.handleMethod = () => {}
  • functional component 插入的模板为
const handleMethod = () => {}

License

MIT

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