- 文件-->首选项-->用户代码片段-->输入框输入vue.json;
- 将如下代码复制到文件中:
{
"Print to console": {
"prefix":"vue",
"body": [
"<!-- $0 -->",
"<template>",
" <div></div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {",
" }",
" }",
"}",
"</script>",
"",
"<style lang='less' scoped>",
"",
"</style>",
""
],
"description":"Log output to console"
}
}
- 然后新建.vue文件,在空白文件中输入vue,回车
网友评论