Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>vue-directive-snippetsNew to Visual Studio Code? Get it now.
vue-directive-snippets

vue-directive-snippets

xiaofei

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

vue-directive-snippets

vue 指令提示(支持 vue2/vue3)

有新的指令需求 👉欢迎 issues

功能

官方指令

  vt: 'v-text= '
  vh: 'v-html= '
  vsh: 'v-show= '
  vi: 'v-if= '
  ve: 'v-else= '
  vei: 'v-else-if= '
  vf: 'v-for="item in list$1"  :key="item.id"'
  vo: 'v-on= '
  vb: 'v-bind= '
  vm: 'v-model= '
  vs: 'v-slot= '
  vpre: 'v-pre= '
  vc: 'v-cloak= '
  vonce: 'v-once= '
  vme: 'v-memo= '
  vis: 'v-is= '

自定义指令

  vpermission: 'v-permission= '
  vcopy: 'v-copy= '
  vlongpress: 'v-longpress= '
  vdebounce: 'v-debounce= '
  vemoji: 'v-emoji= '
  vlazy: 'v-lazy= '
  vdraggable: 'v-draggable= '
  vdrag: 'v-drag= '
  vscreenfull: 'v-screenfull= '
  vellipsis: 'v-ellipsis= '
  vbacktop: 'v-backtop= '
  vempty: 'v-empty= '
  vbadge: 'v-badge= '
  vresize: 'v-resize= '

xiaofei

License

MIT

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