vscode中vue单文件组件快捷初始化模板:vue+tab
{ "Print to console": { "prefix": "vue", "body": [ "<template>", "<div>\n", "</div>", "</template>\n", "<script>", "export default {", " name: '',", " props: [],", " components: {},", " data () {", " return {}", " },", " computed: {},", " methods: {},", " watch: {},", " beforeCreate () {},", " created () {},", " beforeMount () {},", " // mounted () {},", " beforeUpdate () {},", " updated () {},", " activated () {},", " deactivated () {},", " beforeDestroy () {},", " destroyed () {},", " errorCaptured () {},", "}", "</script>\n", "<style scoped lang=\"${1:less}\">\n", "</style>\n", ], "description": "Create vue template" } }