vscode set Vue template
Step 1
Step 2 Step
3 Copy the code
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div id='app'></div>",
"</template>",
"",
"<script>",
" var app = new Vue({",
" el:'#app', ",
" data: {",
" },",
// " components: {},",
// " computed: {},",
" methods: {}",
"})",
"</script>",
],
"description": "Log output to console"
}
The fourth step is to enter "vue" and enter or the Tab key.