Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>my-commentNew to Visual Studio Code? Get it now.
my-comment

my-comment

yirizhou

|
35 installs
| (0) | Free
快捷生成特定注释
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

my-comment

快捷生成特定注释插件

install

Press F1,typeext install my-comment.

hot key - 快捷键

alt+p 生成属性注释 alt+e 生成事件注释

注释关键词说明

  • @property 标识为属性
  • @description 描述
  • @requires 是否必填
  • @type 属性类型
  • @link 文件路径
  • @event 标识为事件
  • @detail 事件返回值类型名

注释声明

属性

Component({
  properties: {
    /**
     * @property list
     * @description 列表数据
     * @requires
     * @type IListVO {@link ./__interface__/vo.d.ts}
     */
    list: {
      type: Array,
      value: [] as IListVO,
    },
  },
});

事件

Component({
  properties: {
    /**
     * @property list
     * @description 列表数据
     * @requires
     * @type IListVO {@link ./__interface__/vo.d.ts}
     */
    list: {
      type: Array,
      value: [] as IListVO,
    },
  },
  method: {
    init() {
      /**
       * @event onReady
       *
       * @description 初始化完成事件
       *
       * @detail IReadyDetail {@link ./__interface__/event.d.ts}
       */
      this.triggerEvent<IReadyDetail>("onReady", {
        isInit: true,
      });
    },
  },
});
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft