1.点击【文件】--【首选项】--【用户片段】
2.输入vue,选择【vue.json(Vue)】
3.粘贴下方代码(可自行修改)
{
"Print to console": {
"prefix": "v",
"body": [
"<template>",
" <div>\n",
" </div>",
"</template>\n",
"<script>",
"export default {",
" data() {",
" return {\n",
" };",
" },",
" mounted() {\n",
" },",
" methods: {\n",
" }",
"};",
"</script>\n",
"<style scoped lang=\"${1:less}\">\n",
"</style>\n",
],
"description": "Create vue template"
}
}