1.Ctrl + Shift + P唤出控制台![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/c040ce06ae9c545839914c54204a3d8e.png)
2、输入“snippets”并选择
3、接着输入vue
注意:没有vue.json,直接点vue进入
4、将下面代码复制进去保存即可(模板需求可自定义)
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div>$0</div>",
"</template>",
"",
"<script>",
"export default {",
" components: {},",
" props: {},",
" data() {",
" return {",
" };",
" },",
" watch: {},",
" computed: {},",
" created() {},",
" mounted() {},",
" methods: {},",
"};",
"</script>",
"<style lang=\"scss\" scoped>",
"</style>"
],
"description": "A vue file template"
}
}