自己常用的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(持续更新)相关推荐

  1. db2dual_DB2常用SQL的写法(持续更新中...)

    DB2常用SQL的写法(持续更新中...) -- Author: lavasoft -- Date  :  2006-12-14 -- 创建一个自定义单值类型 create  distinct typ ...

  2. 数据库常用操作,会持续更新

    数据库常用操作,会持续更新 1.DDL-数据库操作show databases; 查询所有数据库 create database 数据库名: 创建数据库 use 数据库名: 进入所选的数据库中 sel ...

  3. IDEA 快速返回上次查看代码的位置常用的IDEA快捷键(持续更新)

    IDEA 快速返回上次查看代码的位置常用的IDEA快捷键(持续更新) IDEA 快速返回上次查看代码的位置:快捷键是:ctrl+alt+方向键(<-往回) 更多精彩请访问本文源地址: https ...

  4. psid mysql_DB2常用SQL的写法(持续更新中...)

    DB2常用SQL的写法(持续更新中...) -- Author: lavasoft -- Date  :  2006-12-14 -- 创建一个自定义单值类型 create  distinct typ ...

  5. Windows下bat批处理脚本常用场景整理,持续更新中。。。

    Windows下bat批处理脚本常用场景整理,持续更新中... 一.Winodws下使用bat脚本对结果进行筛选 例如:在筛选出来的结果中,筛选是否有"$G"字段 adb shel ...

  6. 汇编语言常用指令汇总(持续更新)

    汇编语言常用指令汇总(持续更新) 通用数据传送指令 累加器专用指令 有效地址送寄存器指令 标志寄存器传送指令 加法指令 减法指令 乘法指令 除法指令 逻辑指令 移位指令 通用数据传送指令 MOV(Mo ...

  7. 常用数据集整理(持续更新ing)

    常用数据集整理(持续更新ing)     在做实验过程中经常用到的数据集整理一下,按照学习过程中遇到的数据集的先后顺序进行整理,希望能对科研有所帮助.本博文将随着学习过程持续性更新,有其他常用数据集的 ...

  8. linux运维常用命令一句话(持续更新中)

    整理收集一些Linux运维管理.系统管理的常用命令,太多了记不住,只能记录下来方便日后查看.也可以和大家分享.如果你有好的一句话命令也贴出来吧.本文持续更新中. 1.linux启动过程 开启电源 -- ...

  9. 关于js的一些常用小知识点(持续更新)

    关于js的一些常用小知识点 1.获取页面中所有选中的CheckBox复选框的值 2.js获取网页URL中所带的参数 3.js模拟点击button 4.前端传入后台list,后台是不能接收List的,就 ...

最新文章

  1. apicloud ajax html,基于apicloudAJAX请求代码合集
  2. React Native学习笔记-1:JSC profiler is not supported.(转载)
  3. android获取导航栏宽高,Android获取屏幕的宽高度、状态栏、标题栏、导航栏、编辑区域高度...
  4. 常用的LINQ to SQL 用法
  5. Android之多线程----异步消息处理机制之Handler详解
  6. C/C++宏的使用总结
  7. 淮阴工学院计算机学院机房,实验室开放
  8. 战“疫”期,阿里云云效团队在家高效开发实录
  9. jq怎么回到顶部和回到尾部_回到学校系列为孩子们提供开放资源
  10. webgl 包围盒子
  11. ubuntu安装ROS运行rosdep init错误,cannot download default sources list from....
  12. ChineseBERT Chinese Pretraining Enhanced by Glyph and Pinyin Information
  13. Mac电脑下载软件的几个网站
  14. 用计算机处理表格信息教案,表格信息的加工与表达教案
  15. medusa--暴力破解
  16. [Windows系统]visio安装时提示和即点即用版本不能并行怎么办
  17. 凡事都要追求公平?还真不一定!
  18. Linux防火墙firewalld安全设置
  19. [战略]Fans未来战略--第3篇--以文会友
  20. c语言中怎么把大写字母转化为小写字母,c语言大小写字母怎么转化?

热门文章

  1. layui前端web开发框架
  2. 姿态传感器——MPU6050
  3. 计算机科学与技术和电子信息工程选哪个会更好一些?
  4. 让程序后台运行的几种方法
  5. 农行网银支付API ASP接口
  6. python的0x55555555和0xaaaaaaaa
  7. 汽车显示屏服务器连接不上,行车记录仪能连接汽车中控显示屏吗
  8. 智能传感器的应用领域
  9. 如何用视频剪辑软件Vegas剪视频
  10. 二、Element-UI