Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>web components vscodeNew to Visual Studio Code? Get it now.
web components vscode

web components vscode

ZhengWei513

|
1 install
| (0) | Free
自定义组件跳转及显示注释内容
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Web Components 组件跳转到对应 js 文件, 显示注释信息及语法插件

跳转实现

组件名称必须和 js 文件名相同(使用 endsWith 匹配的);

组件 hover 提示信息

支持显示组件对应的 js 文件里面(前 200 行代码)首个多行注释/** 注释内容 */

Web Components 语法

1. js-webComponents 创建 Web Components 模板

2. js-dispatchEvent 创建 dispatchEvent 模板

推荐插件 Web Components js 中显示更好看

  1. es6-string-html [Tobermory]

  2. Format Selection As HTML [Adrian Wilczyński]

  3. Inline HTML [pushqrdx]

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