English | 简体中文
SVG All in One is an all-in-one SVG toolkit for VS Code, covering editing, preview, optimization, export, diagnostics, and productivity enhancements.
Features
- Split editing workflow: source editor + interactive preview panel
- One-click processing:
Format/Cleanup/Compress - Export: PNG and multi-scale PNG (
@1x/@2x/@3x) - Interactive element editing in preview:
- Drag to move
- Rotate left/right (15° per step)
- Scale up/down (10% per step)
- Delete selected element
- Context-menu color tools (after selecting an element):
Modify ColorExtract Color
- Selected-node attribute sidebar (precise attribute editing)
- SVG diagnostics:
- Invalid/uncommon attributes
- Duplicate
id - Basic accessibility checks (
title/desc/role/aria)
- Smart completion (snippet-style while typing):
- Tag completion
- Attribute completion
- Common attribute value completion
Usage
- Open any
.svgfile. - Click the editor title bar command icon, or run:
SVG All in One: Open Split Editor + Preview
- Use the top toolbar in the preview panel for format/cleanup/compress/export/save.
- Click elements in preview to select and edit interactively; right-click to recolor or extract color.
Key Interactions
- Canvas zoom:
Ctrl/Cmd + Mouse Wheel - History operations:
Undo/Redo - Unsaved change prompt: when closing the preview panel
Commands
SVG All in One: Open Split Editor + PreviewSVG All in One: Export PNGSVG All in One: Export PNG Variants (@1x/@2x/@3x)SVG All in One: Quick RecolorSVG All in One: Cleanup Useless XMLSVG All in One: Compress SVG (SVGO)SVG All in One: Format SVGSVG All in One: Extract Color PaletteSVG All in One: Edit Selected AttributeSVG All in One: Add AttributeSVG All in One: Remove Attribute
Local Development
pnpm install
pnpm run compile
Press F5 to launch the Extension Development Host.
Tech Stack
- TypeScript
- VS Code Extension API
svgoxml-formatter@resvg/resvg-js@xmldom/xmldom