Vue Velocidad is a very opinionated Vue VsCode snippet extension, which modifies and updates vue-vscode-snippets, best used with Vue-Cli 3.
Either click this link or install it from the commandline
code --install-extension davidbernegger.vuevelocidad
prefix | Expression |
---|---|
vdata | data: {} |
vmethod | method: {} |
vcomputed | computed: {} |
vwatch | watch: {} |
vwatch-options | watch: {...} |
vprops | props: {} |
vcomponents | components: {} |
vfilter | filters: {} |
vmixin | mixins: [] |
prefix | Expression |
---|---|
vfor | v-for |
vmodel | v-model |
von | v-on |
vimg | image source |
vstyle | bind style |
vstyle-arr | bind 2+ styles |
vclass | bind class |
vclass-arr | bind 2+ classes |
vanim | transition comp |
vanim--hook | in script |
prefix | Expression |
---|---|
vbcreate | beforeCreate() |
vcreated | created() |
vbmount | beforeMount() |
vmounted | mounted() |
vbupdate | beforeUpdate() |
vupdated | updated() |
vbdestroy | beforeDestroy() |
vdestroyed | destroyed() |
prefix | Expression |
---|---|
vcommit | this.$store.commit() |
vdispatch | this.$store.dispatch() |
vmapgetters | ..mapGetters({...}) |
vmapstate | ..mapState({...}) |
vstore | vuex store base |
vstore-import | import vuex store |
vgetters | getters: {...} |
vmutations | muations: {...} |
vactions | actions: {...} |
prefix | Expression |
---|---|
vtest | unit test |
vnextick | next Tick |
vscss | import external scss in vue.config.js |