在 ctril+shift+p 输入 snippets 回车,选择 vue.json
添加:
```bash
"Print to console":{
"prefix": "vue",
"body": [
"<template>",
" <div class=\"container\">$0</div>",
"</template>",
"",
"<script>",
"export default {",
" props:{},",
" data(){",
" return {",
" }",
" },",
" watch:{},",
" computed:{},",
" methods:{},",
" created(){},",
" mounted(){},",
" components:{}",
"}",
"</script>",
"<style lang=\"scss\" scoped>",
".container{}",
"</style>"
],
"description": "A vue file template"
}
```