vscode 自定义vue的代码片段

文件-首选项-用户代码片段-vue.json

{
"Print to console": { "prefix": "vue", "body": [ "<template>", " <div class=\"page\">\n", " </div>", "</template>\n", "<script type=\"text/ecmascript-6\">", "export default {", " components: {\n", " },", " data() {", " return {\n", " }", " },", " methods: {\n", " }", "}", "</script>\n", "<style scoped lang=\"stylus\">", "</style>", "$2" ], "description": "Log output to console" } }

 

posted @ 2020-05-09 15:42  shanjinghao  阅读(865)  评论(0编辑  收藏  举报