文件-首選項-用戶代碼片段-搜索“vue”點擊進入vue.json
復制這個片段
1 { 2 "Vue component": { 3 "prefix": "vue", 4 "body": [ 5 "<template>", 6 "\t$1", 7 "</template>", 8 "<script>", 9 "export default {", 10 "\t", 11 "}", 12 "</script>", 13 "<style scoped>", 14 "</style>", 15 "" 16 ] 17 } 18 }
重啟vscode
輸入vue即可
若有不明白請加群號:復制 695182980 ,也可掃碼,希望能幫助到大家。