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

Spritesheet JSON Preview

Alec Douglas

|
2 installs
| (0) | Free
Shows previews of sprite frames within the JSON definition.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Sprite Sheet Preview for VS Code

This extension adds icon sprite previews to your JSON sprite sheet definitions (Aseprite / TexturePacker Hash or Array format).

Features

  • Gutter Icons: Shows a small preview of the sprite frame in the editor gutter next to the frame definition.

  • Hover Preview: Hover over the frame key (hash format) or filename (array format) to see a larger, full-size preview of the sprite.

Usage

  1. Open a JSON file that describes a sprite sheet (e.g., exported from Aseprite).
  2. Ensure the referenced image (in meta > image) exists relative to the JSON file.
  3. You will see sprite icons in the gutter next to each frame definition. Hover over the key/filename to see the full-size preview.

Configuration

  • spritePreview.thumbnailSize: Set the size (height) of the preview image shown in the hover tooltip (default: full size).
  • spritePreview.backgroundColor: Set the background color of the preview image (default: transparent).
    • Useful if there is insufficient contrast between your VS Code theme and your sprite.

Requirements

The JSON file must follow the standard Hash or Array format:

Hash Format:

{
  "frames": {
    "icon.png": {
      "frame": { "x": 0, "y": 0, "w": 16, "h": 16 },
      ...
    }
  },
  "meta": { ... }
}

Array Format:

{
  "frames": [
    {
      "filename": "icon.png",
      "frame": { "x": 0, "y": 0, "w": 16, "h": 16 },
      ...
    }
  ],
  "meta": { ... }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft