Install from VS Code marketplace
Open VS Code extensions
Press
Cmd+Shift+X (Mac) or Ctrl+Shift+X (Windows/Linux) to open the Extensions view.Search for Better SVG
Type “Better SVG” in the search box and look for the extension published by midudev.
Install from command line
You can also install Better SVG using the VS Code command line:Verify installation
After installation, open any.svg file in your workspace. You should see:
- An “SVG Preview” panel appear in the Explorer sidebar
- A ⚡ optimization button in the editor toolbar
- Small preview icons in the gutter (next to line numbers)
The SVG Preview panel only appears when you have an SVG file open. It automatically collapses when you switch to non-SVG files.
System requirements
- VS Code version: 1.85.0 or higher
- Platform: Windows, macOS, or Linux
- No additional dependencies required
Next steps
Quickstart guide
Open your first SVG and explore the preview features
Configuration
Customize Better SVG settings to match your workflow