1.安装vuehelper 0.1.0
2.点击文件 ——> 首选项——>用户代码片段 输入vue,设置vue.json文件
3.json文件设置内容
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div>\n$0",
" </div>",
"</template>\n",
"<script>",
"export default {",
" components: {\n",
" },",
" props: {\n",
" },",
" data() {",
" return {\n",
" };",
" },",
" created() {\n",
" },",
" watch: {\n",
" },",
" computed: {\n",
" },",
" mounted() {\n",
" },",
" methods: {\n",
" },",
"};",
"</script>\n",
"<style>\n",
"</style>\n",
],
"description": "Create vue template"
}
}