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

Icon Folder Preview

isuru sampath

|
7 installs
| (4) | Free
Preview all icons and images in any folder as a searchable web gallery inside VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Icon Folder Preview

Icon Folder Preview helps you inspect a folder full of icons or images without leaving VS Code. Instead of opening files one by one, it turns the folder into a searchable visual gallery.

What this extension is for

This extension is useful when you have a design asset folder, icon pack, or image directory and need to quickly answer questions like:

  • Which icon file do I need?
  • Do I already have this asset in SVG or PNG?
  • What is the exact file name or relative path?
  • How does this icon look before I copy its path into code?

What it does

  • Scans the selected folder recursively for supported image assets.
  • Separates SVG icons from raster images.
  • Shows everything in a visual gallery inside a VS Code webview.
  • Filters results by search text using asset name, filename, and relative path.
  • Lets you switch between all assets, SVG only, or raster images only.
  • Lets you resize the SVG grid for easier browsing.
  • Opens a larger preview when you click an asset.
  • Copies the asset name, relative path, or webview URI from the preview dialog.
  • Lets you refresh the current folder or change to a different folder from the same panel.

Supported formats:

  • .svg
  • .png
  • .jpg
  • .jpeg
  • .webp
  • .gif
  • .ico
  • .bmp
  • .avif

Real usage

Use this extension when you are working on UI code, documentation, design systems, or asset cleanup and need to browse icons quickly.

Typical examples:

  • Frontend work: find the exact icon file to reference in a component.
  • Design handoff: inspect a folder from design exports and compare SVG vs PNG versions.
  • Cleanup work: identify duplicate-looking assets by previewing them visually.
  • Documentation work: copy the correct relative path for screenshots or asset references.

How to use it

Open from the Explorer

  1. Install the VSIX.
  2. In the VS Code Explorer, right-click a folder that contains icons or images.
  3. Choose Preview Icons & Images.
  4. A preview panel opens and scans the folder.

Open from the Command Palette

  1. Open the Command Palette.
  2. Run Icon Folder Preview: Choose Folder….
  3. Pick the folder you want to inspect.

Work inside the preview panel

  1. Wait for the folder scan to complete.
  2. Use the search box to narrow results.
  3. Use All, SVG, or Images to filter the gallery.
  4. Use the Size slider to adjust SVG card size.
  5. Click an asset to open the larger preview.
  6. Use Copy name, Copy path, or Copy URI depending on what you need.
  7. Use Refresh after assets change on disk.
  8. Use Change Folder to preview another folder without closing the panel.

Step by step: what happens internally

  1. The extension command receives a folder from the Explorer or the folder picker.
  2. A VS Code webview panel is opened for that folder.
  3. The panel shows a loading screen immediately.
  4. The extension scans the folder recursively up to 5 levels deep.
  5. Hidden files and hidden folders are ignored.
  6. Only supported image extensions are included.
  7. Each matching file is converted into an asset model containing its name, filename, type, and relative path.
  8. Local file paths are converted into safe webview URIs so the panel can render them.
  9. The panel builds two result sections:
    • SVG Icons
    • Images
  10. Search and filter actions happen in the webview without rescanning the folder.
  11. Clicking an asset opens a lightbox preview with quick copy actions.
  12. Refresh rescans the same folder.
  13. Change Folder recreates the panel with a new folder root.

Current extension assets

  • Extension icon: assets/icon.png
  • Packaged output: icon-folder-preview-0.1.1.vsix

Package the extension

Run:

npm run package

This produces:

icon-folder-preview-0.1.1.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft