Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>SVGA Animation PreviewNew to Visual Studio Code? Get it now.
SVGA Animation Preview

SVGA Animation Preview

jackylee1992

|
2 installs
| (0) | Free
Hover over online .svga URLs or local .svga file paths to see an animated preview, or open .svga files directly in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SVGA Animation Preview

English | 简体中文

Hover over an online .svga URL or a local .svga file path in any file and see the animation right in the hover — or open .svga files directly inside VS Code. No browser, no external player, no manual downloads.

Hover preview

SVGA is a vector/bitmap animation format widely used in mobile apps (iOS / Android / Web). Animation URLs and asset paths usually live in code as plain strings, which makes it hard to tell which animation is which. This extension renders them inline.

Features

  • Animated preview on hover — the SVGA is rendered frame by frame into an animated PNG and shown in the hover, with a checkerboard background so white or transparent elements stay visible in both light and dark themes.
  • Online URLs & local file paths — works for http(s)://….svga URLs (with query strings), file:// URLs, absolute paths, paths relative to the current file (./a.svga, ../res/a.svga), and workspace-relative paths (assets/a.svga, /assets/a.svga). Non-existent local paths stay silent without error spam.
  • Built-in .svga file viewer — open any local .svga file directly in VS Code using Open With… → SVGA Preview to view a larger animated preview alongside full metadata (canvas size, frames, FPS, duration, file size, version, sprites, images). Updates automatically when the file changes on disk.
  • Metadata at a glance — canvas size, frame count, fps, duration, file size and SVGA version.
  • Works in any language — Lua, Swift, Objective-C, Kotlin, Java, JS/TS, JSON, YAML, Markdown… anything that contains an .svga URL or path.
  • Faithful rendering — bitmaps, vector shapes (path / rect / ellipse, fill, stroke, dash), clip paths, KEEP frames, and bitmap / vector mattes.
  • Smart disk cache — remote URLs are downloaded once and cached on disk; local files are never copied into the cache and their rendered previews are keyed by path, mtime, and file size so edits refresh automatically. Concurrent requests share one render.
  • Light on resources
    • Rendering runs in a separate process, so the editor never freezes and a crash can't take down the extension host.
    • The renderer exits after 30 s idle — no SVGA data or render buffers stay in memory after you've looked at a preview.
    • Peak memory is bounded (frame sampling under a pixel budget), file/download size is capped at 30 MB (20 s download timeout), and each render times out after 30 s.
  • Localized — English and 简体中文 (follows VS Code's display language).

Usage

Hover Preview

  1. Install the extension.
  2. Hover over any online .svga URL or local .svga path in your code. The first preview renders (usually well under a second); later hovers hit the disk cache instantly.

Opening .svga Files Directly

Right-click a .svga file in the Explorer (or click Reopen Editor With… on an open tab) and choose SVGA Preview.

Coexistence with other SVGA extensions: This extension registers its .svga viewer with "priority": "option" so it will not hijack or conflict with other installed SVGA viewers (such as nomeleel.svga-preview). If you want SVGA Preview to be your default editor when clicking .svga files, add this to your VS Code settings.json:

"workbench.editorAssociations": {
  "*.svga": "svgaPreview.viewer"
}
Command Description
SVGA Preview: Clear SVGA Preview Cache Delete all cached files, e.g. when the file behind a URL has been replaced on the CDN.
Setting Default Description
svgaPreview.maxSize 180 Maximum height (px) of the hover preview. Width is limited to 1.6× this value. VS Code hovers are about 250 px tall, so larger values need scrolling.

Cache

Files are stored under VS Code's global storage for this extension (…/globalStorage/jackylee1992.svga-url-hover-preview/cache):

  • <sha1(url)>.svga — cached remote file (local .svga files are read in place and never copied here)
  • <sha1(key)>@<size>.r<N>.png / .json — rendered preview and metadata (for local files, <key> includes file path, mtime, and size)

The cache is never cleaned automatically; use the Clear SVGA Preview Cache command.

Limitations

  • Only SVGA 2.x is supported. SVGA 1.x (zip-based) files show a "not supported" message.
  • Audio tracks and dynamic (runtime-replaced) images/text are ignored.
  • Long animations are sampled to at most 90 frames in the preview.
  • Platform-specific builds are published for macOS (Apple Silicon / Intel), Windows (x64 / ARM64), Linux (x64 / ARM64 / ARMhf) and Alpine (x64 / ARM64), because rendering uses a native canvas library (@napi-rs/canvas).

Privacy

The extension only downloads the remote URLs you hover over and reads local .svga files you hover over or open. It sends no telemetry.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft