Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>咚咚压New to Visual Studio Code? Get it now.
咚咚压

咚咚压

dongdongli

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

咚咚压 (一款不仅仅是压缩工具的插件 )

插件介绍

【咚咚压】 是一款压缩图片,压缩js|css代码,pngToJpg JpgToPng图片转换,图片转化ico文件的插件,

图片压缩支持文件格式:

['.png', '.jpg', '.jpeg', '.dmg', '.webp']

功能:

  1. 支持单文件压缩,多文件压缩,有KEY压缩(稳定)无KEY压缩(不稳定),
  2. js文件压缩
  3. css 文件压缩
  4. 设置文件裁剪
  5. jpg转png,jpeg转png
  6. png转jpg
  7. 图片转ico

咚咚压扩展属性

name type default desc
showTip boolean true 插件激活提示
deepCompress boolean false 是否需要深度压缩
tinifyKey string "" Tinify开发者APIKey

https://tinypng.com/
replaceCurrentFile boolean true 是否在压缩文件的时候替换当前文件
resizeWidth number 100 调整图片的宽
resizeHeight number 100 调整图片的高
comments number false 去除JS,CSS文件注释,为false则去除true保留
icoSize object { "width": 128,"height": 128} 转换ico文件的宽高

使用

  1. 右击文件显示菜单

    image-20231220172704380

  2. 右击文件夹显示

    image-20231220172736404

  3. 右击js|css

    image-20231220172806269

  4. 控制台显示

    image-20231220172806269

  5. 设置页

    image-20231220172806269

请作者喝杯咖啡吧,感谢有你的支持和鼓励!

image-20231220172806269

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft