步骤一:打开vue.json文件
- 打开路径:File(文件) / Preferences (首选项) / User Snippets(用户代码片段)
- 弹出一个框,输入vue,打开vue.json文件
默认显示如下内容:
步骤二:配置vue模板
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
"\t<section></section>",
"</template>",
"<script>",
"export default {",
"\tname: '',",
"\tdata() {",
"\t\treturn {};",
"\t},",
"\tmethods: {}",
"};",
"</script>",
"<style lang='scss' scoped></style>",
""
],
"description": "tplv output to vue-template"
}
}