赞
踩
文件-->首选项-->用户代码片段-->vue.json
vue.json
设置 粘入即可
- {
- "Print to console": {
- "prefix": "vue",
- "body": [
- "<template>",
- " <div></div>",
- "</template>",
- "",
- "<script>",
- "export default {",
- "}",
- "",
- "</script>",
- "",
- "<style lang='stylus' scoped>",
- "",
- "</style>",
- ""
- ],
- "description": "Log output to console"
- }
- }

prefix 是用来触发代码段的内容,即是使用模板的快捷入口
body 是模板所需的代码。
description 是代码段描述
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。