點擊文件-->首選項-->用戶代碼片斷-->輸入vue,此時會打開vue.json文件,將下列代碼複製進文件保存便可,新建一個vue文件,輸入vue回車便可生成模板,$0表示生成模板後,光標所在位置。css

"Print to console": {
"prefix":
"vue",
"body": [
"<template>",
" <div>$0</div>",
"</template>",
"",
"<script>",
"export default {",
" data () {",
" return {",
" };",
" },",
"",
" components: {},",
"",
" computed: {},",
"",
" mounted: {},",
"",
" methods: {}",
"}",
"",
"</script>",
"<style lang='scss' scoped>",
"</style>"
],
"description":
"Log output to console"
}