Customize the directory path to display via settings
Manually refresh the preview with the update button
Usage
Open the command palette (Ctrl+Shift+P or Cmd+Shift+P)
Run the Assets Viewer: Show Preview command
Assets will be displayed in a grid layout, grouped by directory
Settings
This extension supports the following settings:
vs-assets-viewer.path: The directory path to preview assets from. If empty, the workspace root directory will be used.
You can specify an absolute path or a path relative to the workspace.
Example: assets/images or /path/to/your/assets
Requirements
VSCode 1.96.0 or higher
Installation
Local Installation
Clone the repository
Install dependencies: pnpm install
Build: pnpm run build
Package: pnpm run package
Install the generated .vsix file in VSCode:
Run Extensions: Install from VSIX... from the command palette
Select the generated .vsix file
Development
Prerequisites
Node.js
pnpm
Visual Studio Code
Setup
# Clone the repository
git clone https://github.com/yourusername/vs-assets-viewer.git
cd vs-assets-viewer
# Install dependencies
pnpm install
# Run in development mode
# Press F5 or select "Run Extension" from the "Run and Debug" panel
Build
# Compile TypeScript
pnpm run compile
# Or compile in watch mode
pnpm run watch
# Package
pnpm run package