vscode-svg-preview

A lightweight Visual Studio Code extension that detects inline <svg> elements in Vue components and displays a live preview directly in the editor.
Features
- Detects
<svg> blocks inside <template> of .vue files
- Adds a 👁️ Preview SVG CodeLens above each
<svg> tag
- Opens a Webview preview panel with your SVG rendered
- Supports multiple
<svg> s per file
- Lightweight & works out-of-the-box
Screenshots
Add a screenshot or GIF of the preview here.
Example:

Installation
- Open VS Code
- Go to Extensions Marketplace (
Ctrl+Shift+X / Cmd+Shift+X on macOS)
- Search for
vscode-svg-preview
- Click Install
Alternatively, install from the Marketplace page.
Usage
- Open any
.vue file containing inline <svg> s.
- Look for the 👁️ Preview SVG link above each
<svg> block.
- Click it → preview opens in a side panel.
Configuration
Currently, this extension works automatically and does not require configuration.
Future versions may support theme/background customization.
Contributing
Contributions are welcome!
If you’d like to help improve this extension:
- Fork this repo
- Create a feature branch (
git checkout -b feature/my-feature )
- Commit your changes (
git commit -m "Add feature" )
- Push to branch (
git push origin feature/my-feature )
- Open a Pull Request
License
This project is licensed under the MIT License.
Author
Deniz Derman
Support
If you find this extension useful, please consider giving it a ⭐ on GitHub and leaving a review on the Marketplace 🙏
| |