vscode添加vue生成模板
1, vscode 文件 ---- > 首选项 ---- > 用户片段 -----> vue
2,
{ "Print to console": { "prefix": "vue", "body": [ "<template>", " <div class='home'></div>", "</template>", "", "<script>", "export default {", " name: '',", " data() {", " return {", " };", " },", " methods: {", "},", " mounted(){", "},", "};", "</script>", "", "<style scoped>", "", "</style>", "", ], "description": "Log output to console" }
3, vue + enter