1、配置vue代码片段
文件--首选项--用户代码片段,搜索vue回车

{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div class=\"container\">\n",
" </div>",
"</template>\n",
"<script>",
"export default {",
" data() {",
" return {\n",
" }",
" },",
" components: {\n",
" }",
"}",
"</script>\n",
"<style scoped lang=\"less\">\n",
"</style>",
"$2"
],
"description": "Log output to console"
}
}
新建页面 输入vue按住tab键就可以了
空格报错问题
找到build-webpack.base.conf.js文件,注释掉这行即可

