vscode 设置默认模板
2024-10-20 21:12:43
1.左下方管理按钮
2.用户代码片段
3.搜索html.json
4.{
"Print to vue": {//print to 后面的vue是模板的命名
"prefix": "vue",//选择代码片段时将使用的前缀,即要打出的快捷键
"body": [//模板代码
"<div id=\"app\">",
"\t<div>{{number}}</div>",
"\t<input type=\"button\" value=\"+\" @click=add() >",
"</div>",
"<script>",
"\tconst app=new Vue({",
"\t\tel:'#app',",
"\t\tdata:{",
"\t\t\tmessage:'hello',",
"\t\t},",
"\t\tmethods:{",
"\t\t}",
"\t})",
"</script>"
],
"description": "init vue template"//对模板的描述
}
}
最新文章
- algorithm -- 插入排序
- C#中Validating和Validated事件
- Android菜单Menu的创建
- google protocol buffer 使用说明
- <;转>;——网络爬虫
- 学习MVC框架的步骤
- UML标准图(转载)
- Android Studio 入门(转)
- 3g自己主动更新网卡驱动web完架构文档
- L2-022 重排链表 (25 分)
- Ehcache配置详解及CacheManager使用
- canvas绘制爱心的几种方法
- stock1114
- [leetcode]56. Merge Intervals归并区间
- HTTP 错误 404.0 - Not Found
- Github用.gitignore忽略指定文件
- (转)透明光照模型与环境贴图之基础理论篇(折射率、色散、fresnel定律) .
- Python 让两个print()函数的输出打印在一行内
- Keepalived_vrrp: ip address associated with VRID not present in received packet
- Html5 填表 表单(二) input type 各种输入, 各种用户选择,上传等等泛输入用户交互
热门文章
- Python报AttributeError: module &#39;string&#39; has no attribute &#39;join&#39;解决方法
- Qt大型工程开发技术选型Part3:Qt调用C#编写的COM组件实例
- 把ChatGPT配置到微信群里,可以对AI提问了!
- 跟光磊学Java-Windows版Java8开发环境搭建
- Git使用记录 - 持续更新
- s2-005
- python进阶之路18 os、sys、json模块
- 《Effective C++》继承与面向对象设计
- Git + Jenkins 自动化 NGINX 发布简易实现
- 【学习笔记】QT从入门到实战完整版(按钮和信号槽)(1)