1.设置---用户代码片段---输入vue.json--enter--进入编辑页面
2.vue.json代码如下(基于sass)
{
"Print to console": {
"prefix": "vue",
"body": [
"<template>",
" <div>$0</div>",
"</template>",
"",
"<script>",
"export default {",
"name: '$0',",
"data () {",
"return {",
"}",
"},",
"created () {},",
"methods: {",
"}",
"}",
"",
"</script>",
"<style lange='scss' scoped >",
"</style>"
],
"description": "Log output to console"
}
}