GMX README
代码片段插件
html代码片段
vue2
vue3
vue3.1
react
js代码片段
cll ======== console.log()
ccl ======== console.log()
ctime ======== console.time() 代码执行时间
ife ======== if + else 判断
if ======== 只有if
setout ======== setTimeout
setval ======== setInterval
else ======== 只有else
eif ======== else if判断
.for ======== forEach
.map ======== map
.red ======== reduce
.sort ======== sort
.fin ======== find
.som ======== some
.eve ======== every
.fil ======== filter
forin ======== for in循环
forof ======== for of循环
json ======== 深拷贝
// ======== 代码折叠region
import ======== import
fb ======== 函数体
.inc ======== includes
sy ======== ? $1 : $2
optc ======== 完美判断数据类型
async ======== async
newp ======== new Promise
switch ======== switch判断
jt ======== 箭头函数
css代码片段
display ======= display居中
posit ======= position居中
displaya ======= display-space-around
displayb ======= display-space-between
sanjiaot ======= css三角形
backimg ======= background: url('') no-repeat 100%;
duohangshenglue ======= 多行省略
danhangshenglue ======= 单行省略
boxs ======= 盒阴影
react API代码片段
useState ======= const [state, setState] = useState(null);
useEffect ======= useEffect函数
lodash API代码片段
cd ======= const $1 = cloneDeep($2)
vue API代码片段
comp ======= vue3 computed (常用版)
comps ======= vue3 computed(set完整版)
watch ======= vue3 watch (ref基础监视)
watchs ======= vue3 watch (监视ref多个变量)
watcho ======= vue3 watch (reactive基础监视)
watchk ======= vue3 watch (监视reactive对象中的某一项属性)
watche ======= vue3 watchEffect函数
canvas API代码片段 version: "0.0.8"
.save ===== .save()
.rest ===== .restore()
save ===== .save() 与 .restore()
.bp ===== .beginPath()
.cp ===== .closePath()
bpcp ===== .beginPath()与.closePath()
.fr ===== .fillRect()
.sr ===== .strokeRect()
.mt ===== .moveTo()
.lt ===== .lineTo()
.fs ===== .fillStyle
.ss ===== .strokeStyle
.fill ===== .fill()
.stroke ===== .stroke()
.arc ===== .arc()
.lw ===== .lineWidth
.lineCap ===== .lineCap
.lineJoin ===== .lineJoin
.rotate ===== .rotate()
.scale ===== .scale()
.translate ===== .translate()
.setLineDash ===== .setLineDash()
.getLineDash ===== .getLineDash()
.lineDashOffset ===== .lineDashOffset()
.ml ===== .miterLimit()
createLinearGradient ===== 渐变色
.cr ===== .clearRect()
.rect ===== .rect()
.stroketext ===== .stroketext()
.filltext ===== .filltext()
.font ===== .font
shadow ===== 设置阴影
.getContext ===== .getContext()
newimg ===== 插入图片
newimg2 ===== 插入图片并截取一部分
版本说明
可在这里 https://marketplace.visualstudio.com/search?target=VSCode&category=All%20categories&sortBy=Installs 选择版本号下载
version: "0.0.8" ======== 添加canvas API 添加HTML文件
| |