Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SVG Sprite Viewer and GeneratorNew to Visual Studio Code? Get it now.
SVG Sprite Viewer and Generator

SVG Sprite Viewer and Generator

smatdnepr

|
3,852 installs
| (2) | Free
Quickly create and view SVG sprites
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Features

This tool has two parts:

  • The Generator simply takes a list of SVG files and make a single sprite file from them using <symbol> elements. The sprite will be created in the same folder as the svg files. The ID for each symbol fit to the name of the file from which it was generated. So if the file name is "ico-email.svg" then <symbol> id="ico-email"

  • The Viewer allows you to view all elements of the created sprite and copy the desired identifier.

Screenshots

Generator:

Screenshot

Viewer:

Screenshot

Settings:

Image

Recommendation

In layout, you can use sprite it like this:

<svg class="ico">
    <use xlink:href="/images/_sprite.svg#ico-email"></use>
</svg>

For compatibility with old browsers it is recommended to include svg4everybody https://github.com/jonathantneal/svg4everybody

Installing

This extension is available for free in the Visual Studio Code Marketplace

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft