設置-用戶代碼片段-搜索vue-點擊vue-全選粘貼
{
"Print to console": {
"prefix": "vu", //寫成自己滿意的前綴(name)
"body": [
"<template>",
" <div>$0</div>",
"</template>",
"",
"<script>",
"export default {",
" name: '',",
" components: {},",
" props: {},",
" data () {",
" return {}",
" },",
" computed: {},",
" watch: {},",
" created () { },",
" mounted () { },",
" methods: {}",
"}",
"</script>",
"",
"<style scoped lang=\"less\">",
"</style>",
""
],
"description": "Log output to console"
}
}
效果: