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

my-vue-comment

完美幸运

|
3 installs
| (0) | Free
智能识别 Vue/TS 参数与返回值的专业注释生成器
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vue Pro Comment 🚀

Vue Pro Comment 是一款专为前端开发者设计的智能 JSDoc 注释生成器。它能够自动解析函数逻辑,精准推断参数类型与返回值。

✨ 核心亮点

  • 🧠 智能类型推断:自动识别 String, Number, Boolean 以及复杂的 {Object}。
  • ⚡ 异步支持:自动识别 async 函数并包装为 Promise<T>。
  • 🎯 箭头函数兼容:完美支持 const func = (params) => {} 这种现代语法。
  • 🔍 深度扫描:基于大括号计数算法,无论函数多长(支持 500+ 行)都能精准定位返回值。
  • ⌨️ 极速交互:插入注释后,按 Tab 键在描述、参数、返回值之间闪电切换。

⌨️ 快捷键

  • Alt + A:在函数定义行按下,瞬间生成专业注释。

📖 示例展示

异步箭头函数测试:

输入:

const handleData = async (id: number, options = {}) => {
    return { status: 200 };
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft