VSCode 设置项
配置项名称 | 数据类型 | 描述 | 默认值 |
---|---|---|---|
image-manager.file.root | string[] | 扫描图片的根目录 | 当前工作区 |
image-manager.file.exclude | string[] | 排除目录 | ["**/node_modules/**","**/.git/**","**/dist/**","**/coverage/**","**/.next/**","**/.nuxt/**","**/.vercel/**","**/.idea/**"] |
image-manager.file.scan | string[] | 扫描的图片类型 | ["png","jpg","jpeg","webp","gif","tiff","tif","avif","heif","heic","apng","svg","bmp","ico"] |
image-manager.file.confirmDelete | boolean | 删除图片时是否询问 | true |
image-manager.file.revealFileInOsDeeply | boolean | 在OS中显示文件夹时进入到文件夹中 | false |
image-manager.appearance.theme | dark | light | auto | 主题 | auto |
image-manager.appearance.language | en | zh-CN | zh-TW | ja | auto | 语言 | auto |
image-manager.appearance.primaryColor | string | 主题色 | undefined |
image-manager.viewer.warningSize | number | boolean | 当图片体积大于此值时右上角展示警告点(KB) | 1024 |
image-manager.viewer.imageWidth | number | 图片宽度(px) | 100 |
image-manager.viewer.imageBackgroundColor | string | 图片背景色 | #1a1a1a |
image-manager.viewer.imageRendering | auto | crisp-edges | pixelated | 图片渲染方式(可自行调整像素风) | auto |
image-manager.viewer.showDetailsOnHover | boolean | 鼠标悬停时显示图片详情 | true |
image-manager.mirror.enabled | boolean | 使用镜像下载依赖 | false |
image-manager.mirror.url | string | 镜像地址(通常情况不需要自定义) | undefined |
image-manager.compression.errorRange | number | 误差范围(KB),超出此误差视为图片压缩后增大 | 2 |
image-manager.compression.keepOriginal | boolean | 压缩后保留原图 | false |
image-manager.compression.fileSuffix | string | 压缩图片文件名添加后缀 | .min |
image-manager.compression.skipCompressed | boolean | 跳过已压缩的图片 | true |
image-manager.compression.quality | number | 压缩图片质量 | - |
image-manager.compression.size | number | 图片尺寸(几倍图) | 1 |
image-manager.compression.format | string | 压缩时转化图片的格式 | '' |
image-manager.compression.png.compressionLevel | number | png图片压缩等级 | 9 |
image-manager.compression.gif.colors | number | gif图片色彩 | 256 |
image-manager.compression.svg.compressedAttribute | string | null | svg压缩后添加「已压缩」属性。如果设置为 null,则禁用功能 | c |
image-manager.compression.svg.removeDataAttributes | boolean | 删除svg中的 data-* 属性。除了 data-[{compressedAttribute}] | true |
image-manager.conversion.format | string | 转化图片格式 | '' |
image-manager.conversion.keepOriginal | boolean | 转化图片格式后保留原图 | false |
image-manager.conversion.icoSize | number[] | ico图标尺寸 | [16, 32] |
image-manager.similarity.precision | number | 判断图片相似的精确度。值越小,判断越严格 | 10 |