← All extensions

Vue snippets

v0.0.3 · by Rune B · added 3 November 2026

A collection of useful snippets for Vue 3.

Snippets

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Vue snippets. The extension's id is vue-snippets.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Vue snippets for Zed

Based on the snippets from the Vue 3 VS Code Snippets extension by ExEr7um.

Snippets

.vue files

SnippetPurpose
vbaseBase for Vue 3 File with <script setup>, TypeScript and SCSS
vbase-sassBase for Vue 3 File with <script setup>, TypeScript and SASS
vbase-lessBase for Vue 3 File with <script setup>, TypeScript and LESS
vbase-pcssBase for Vue 3 File with <script setup>, TypeScript and PostCSS
vbase-cssBase for Vue 3 File with <script setup>, TypeScript and CSS
vbase-stylBase for Vue 3 File with <script setup>, TypeScript and Stylus
vbase-nsBase for Vue 3 File with <script setup>, TypeScript and no style

Template

SnippetPurpose
vforv-for statement
vmodelv-model directive
vonv-on click handler
vel-propsComponent element with props
vslot-namedNamed slot
vimgImage source binding
vstyleInline style binding
vstyle-objInline style binding with objects
vclassClass binding
vclass-terTernary class binding
vtransTransition component
vtrans-groupTransition group component
vrlinkRouter link
vrlink-paramRouter link with param
vsuspenseSuspense wrapper with fallback content

Script

SnippetPurpose
vrefVue ref
vref-typedVue ref with generic type argument
vreactiveVue reactive
vcomputedVue computed
vwatchWatcher
vwatcheffectWatch Effect
vonmountedonMounted hook
vonbeforemountonBeforeMount hook
vonbeforeupdateonBeforeUpdate hook
vonupdatedonUpdated hook
vonerrorcapturedonErrorCaptured hook
vonunmountedonUnmounted hook
vonbeforeunmountonBeforeUnmount hook
vdefinepropsDefine props
vdefineprops-withdefaultsDefine props with defaults
vdefineemitsDefine emits
vsingleemitSingle emit for defineEmits
vdefineslotsDefine slots
vsingleslotSingle slot for defineSlots
vdefineoptionsDefine Options
vdefinemodelDefine Model
vdefineasynccomponentDefine async component

.ts / .js files

SnippetPurpose
vcomposableGeneric Vue composable

CSS

SnippetPurpose
vcss-transitionVue Transition styles
vcss-transition-namedVue Named Transition styles
vcss-transition-tailwindVue Transition styles for Tailwind CSS
vcss-transition-named-tailwindVue Named Transition styles for Tailwind CSS
vcss-transition-groupVue Transition Group styles
vcss-transition-group-tailwindVue Transition Group styles for Tailwind CSS

Vue Router

SnippetPurpose
vrouterVue Router base
vscrollbehaviorVue Router scrollBehavior
vbeforeeachVue Router global guards beforeEach
vbeforeresolveVue Router global guards beforeResolve
vaftereachVue Router global guards afterEach
vbeforeenterVue Router per-route guard beforeEnter
vbeforerouteenterVue Router component guards beforeRouteEnter
vbeforerouteupdateVue Router component guards beforeRouteUpdate
vbeforerouteleaveVue Router component guards beforeRouteLeave