Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>GMXNew to Visual Studio Code? Get it now.

GMX

wang

|
9 installs
| (0) | Free
GMX
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GMX README

代码片段插件

html代码片段


vue2
vue3
vue3.1
react



js代码片段


cll ======== console.log()
time ======== 定时器
ife ======== if + else 判断
if ======== 只有if
else ======== 只有else
eif ======== else if判断
.for ======== forEach
.map ======== map
.reduce ======== reduce
.sort ======== sort
.fin ======== find
.som ======== some
.eve ======== every
.fil ======== filter
josn ======== 深拷贝
// ======== 代码折叠region
import ======== import
.inc ======== includes
?: ======== ? $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三角形
backgroundImage ======= background: url('') no-repeat 100%;


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文件

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft