自己常用的VScode snippet(持续更新)
自己常用的VScode snippet(持续更新)
作者:吴业飞 时间:2018年12月4日
在VScode里编辑自己的代码段(snippet),Ctrl + Shift + p,输入snippet,首选项:配置用户代码片段。
html.json
{// Place your snippets for html here. Each snippet is defined under a snippet name and has a prefix, body and // description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the // same ids are connected.// Example:// "Print to console": {// "prefix": "log",// "body": [// "console.log('$1');",// "$2"// ],// "description": "Log output to console"// }"dump": {"prefix": "dump","body": ["<?php dump($1);?>","$2"],"description": "Log output to console"},"foreach": {"prefix": "foreach","body": ["{foreach name='$1' item='vo' key='k'}$3{/foreach}"],"description": "thinkPHP5 foreach"},"swiperHTML": {"prefix": "swiperHTML","body": ["<div class='swiper-container'>"," <div class='swiper-wrapper'>"," <div class='swiper-slide'>Slide 1</div>"," <div class='swiper-slide'>Slide 2</div>"," <div class='swiper-slide'>Slide 3</div>"," </div>"," <div class='swiper-pagination'></div>"," <div class='swiper-button-prev'></div>"," <div class='swiper-button-next'></div>"," <div class='swiper-scrollbar'></div>","</div>"],"description": "swiper init html"},"swiperJS": {"prefix": "swiperJS","body": ["<script> ","var mySwiper = new Swiper ('.swiper-container', {"," direction: 'vertical', // 垂直切换选项"," loop: true, // 循环模式选项"," // 如果需要分页器"," pagination: {"," el: '.swiper-pagination',"," clickable :true,"," },"," // 如果需要前进后退按钮"," navigation: {"," nextEl: '.swiper-button-next',"," prevEl: '.swiper-button-prev',"," },"," // 如果需要滚动条"," scrollbar: {"," el: '.swiper-scrollbar',"," },","}) ","</script>",],"description": "swiper init JS"}
}
复制代码
版权声明:自由转载-非商用-非衍生-保持署名
转载于:https://juejin.im/post/5c11c288f265da616d540d51
自己常用的VScode snippet(持续更新)相关推荐
- db2dual_DB2常用SQL的写法(持续更新中...)
DB2常用SQL的写法(持续更新中...) -- Author: lavasoft -- Date : 2006-12-14 -- 创建一个自定义单值类型 create distinct typ ...
- 数据库常用操作,会持续更新
数据库常用操作,会持续更新 1.DDL-数据库操作show databases; 查询所有数据库 create database 数据库名: 创建数据库 use 数据库名: 进入所选的数据库中 sel ...
- IDEA 快速返回上次查看代码的位置常用的IDEA快捷键(持续更新)
IDEA 快速返回上次查看代码的位置常用的IDEA快捷键(持续更新) IDEA 快速返回上次查看代码的位置:快捷键是:ctrl+alt+方向键(<-往回) 更多精彩请访问本文源地址: https ...
- psid mysql_DB2常用SQL的写法(持续更新中...)
DB2常用SQL的写法(持续更新中...) -- Author: lavasoft -- Date : 2006-12-14 -- 创建一个自定义单值类型 create distinct typ ...
- Windows下bat批处理脚本常用场景整理,持续更新中。。。
Windows下bat批处理脚本常用场景整理,持续更新中... 一.Winodws下使用bat脚本对结果进行筛选 例如:在筛选出来的结果中,筛选是否有"$G"字段 adb shel ...
- 汇编语言常用指令汇总(持续更新)
汇编语言常用指令汇总(持续更新) 通用数据传送指令 累加器专用指令 有效地址送寄存器指令 标志寄存器传送指令 加法指令 减法指令 乘法指令 除法指令 逻辑指令 移位指令 通用数据传送指令 MOV(Mo ...
- 常用数据集整理(持续更新ing)
常用数据集整理(持续更新ing) 在做实验过程中经常用到的数据集整理一下,按照学习过程中遇到的数据集的先后顺序进行整理,希望能对科研有所帮助.本博文将随着学习过程持续性更新,有其他常用数据集的 ...
- linux运维常用命令一句话(持续更新中)
整理收集一些Linux运维管理.系统管理的常用命令,太多了记不住,只能记录下来方便日后查看.也可以和大家分享.如果你有好的一句话命令也贴出来吧.本文持续更新中. 1.linux启动过程 开启电源 -- ...
- 关于js的一些常用小知识点(持续更新)
关于js的一些常用小知识点 1.获取页面中所有选中的CheckBox复选框的值 2.js获取网页URL中所带的参数 3.js模拟点击button 4.前端传入后台list,后台是不能接收List的,就 ...
最新文章
- apicloud ajax html,基于apicloudAJAX请求代码合集
- React Native学习笔记-1:JSC profiler is not supported.(转载)
- android获取导航栏宽高,Android获取屏幕的宽高度、状态栏、标题栏、导航栏、编辑区域高度...
- 常用的LINQ to SQL 用法
- Android之多线程----异步消息处理机制之Handler详解
- C/C++宏的使用总结
- 淮阴工学院计算机学院机房,实验室开放
- 战“疫”期,阿里云云效团队在家高效开发实录
- jq怎么回到顶部和回到尾部_回到学校系列为孩子们提供开放资源
- webgl 包围盒子
- ubuntu安装ROS运行rosdep init错误,cannot download default sources list from....
- ChineseBERT Chinese Pretraining Enhanced by Glyph and Pinyin Information
- Mac电脑下载软件的几个网站
- 用计算机处理表格信息教案,表格信息的加工与表达教案
- medusa--暴力破解
- [Windows系统]visio安装时提示和即点即用版本不能并行怎么办
- 凡事都要追求公平?还真不一定!
- Linux防火墙firewalld安全设置
- [战略]Fans未来战略--第3篇--以文会友
- c语言中怎么把大写字母转化为小写字母,c语言大小写字母怎么转化?