点击设置 > 用户代码片段 > 输入Vue (打开vue.json)> 将代码复制内
javascript
"Print to console": {
"prefix": "<",
"body": [
"<template>",
" <div class='$1'></div>",
"</template>",
"",
"<script>",
"export default {",
"",
"}",
"</script>",
"",
"<style lang='' scoped>",
"",
"</style>"
],
"description": "A vue2 file template"
}