vscode中如何新建vue模板?方法介绍
2022-11-18 09:21:57
132
{{single.collect_count}}

前端(vue)入门到精通课程:进入学习
Apipost = Postman + Swagger + Mock + Jmeter 超好用的API调试工具:点击使用

推荐:《vscode基础教程

先下载vue插件—— vue-helper

在这里插入图片描述

文件/首选项/用户片段

在这里插入图片描述

搜索vue

在这里插入图片描述

在vue.json中粘贴以下代码

{"Print to console": {"prefix": "vue","body": ["<template>"," <div>\n"," </div>","</template>\n","<script>"," export default {"," data () {"," return {\n"," }"," },"," components: {\n"," }"," }","</script>\n","<style>\n"," ","</style>","$2"],"description": "Log output to console"}}
登录后复制

在这里插入图片描述

保存,然后再使用模板的页面输入vue按tab健就好了

更多编程相关知识,可访问:编程入门!!

以上就是vscode中如何新建vue模板?方法介绍的详细内容,更多请关注php中文网其它相关文章!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}