A Visual Studio Code extension that visualizes React SVG icons directly in your editor.
Features
Shows SVG icon previews at the end of component declaration lines
Preserves original SVG colors when possible
Supports React Native SVG components
Works with function and arrow function components
Handles dynamic fill colors from props
Installation
Using VSIX
Download the .vsix file from releases
In VS Code/Cursor: Extensions → "..." → "Install from VSIX..."
From Source
# Install dependencies and build
npm install
npm run compile
# Package and install
npx @vscode/vsce package
code --install-extension react-svg-icon-visualizer-0.1.0.vsix
# Or use the Makefile
make dev # Clean, build, and install in Cursor
Usage
The extension automatically activates for .tsx, .jsx, .ts, and .js files and displays SVG icons at the end of component declaration lines.
Supported Components
The extension recognizes SVG components in various formats: