A VSCode extension that displays image and SVG files from a specified directory in a grid layout.
- Preview image files (PNG, JPG, JPEG, GIF, BMP, WEBP) and SVG files
- Display assets in a grid layout
- Group assets by directory with section headers
- Open files in a new tab by clicking on them
- Customize the directory path to display via settings
- Manually refresh the preview with the update button
- Open the command palette (
Ctrl+Shift+PorCmd+Shift+P) - Run the
Assets Viewer: Show Previewcommand - Assets will be displayed in a grid layout, grouped by directory
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/imagesor/path/to/your/assets
- VSCode 1.96.0 or higher
- Clone the repository
- Install dependencies:
pnpm install - Build:
pnpm run build - Package:
pnpm run package - Install the generated
.vsixfile in VSCode:- Run
Extensions: Install from VSIX...from the command palette - Select the generated
.vsixfile
- Run
- Node.js
- pnpm
- Visual Studio Code
# 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# Compile TypeScript
pnpm run compile
# Or compile in watch mode
pnpm run watch
# Package
pnpm run packageMIT
指定したディレクトリ配下の画像ファイルとSVGファイルをグリッド形式でプレビュー表示するVSCode拡張機能です。
- 画像ファイル(PNG, JPG, JPEG, GIF, BMP, WEBP)とSVGファイルのプレビュー表示
- グリッドレイアウトでの一覧表示
- ディレクトリごとにセクション分けして表示
- アセットをクリックすると、そのファイルが新規タブで開く
- 表示するディレクトリパスのカスタマイズ(設定から変更可能)
- 更新ボタンによるプレビューの手動更新
- コマンドパレットを開く(
Ctrl+Shift+PまたはCmd+Shift+P) Assets Viewer: Show Previewコマンドを実行- ディレクトリごとにセクション分けされたグリッド形式でアセットが表示されます
この拡張機能は以下の設定をサポートしています:
vs-assets-viewer.path: プレビュー対象のディレクトリパス。空の場合はワークスペースのルートディレクトリが使用されます。- 絶対パスまたはワークスペースからの相対パスを指定できます。
- 例:
assets/imagesや/path/to/your/assets
- VSCode 1.96.0 以上
- リポジトリをクローン
- 依存関係をインストール:
pnpm install - ビルド:
pnpm run build - パッケージ化:
pnpm run package - 生成された
.vsixファイルを VSCode にインストール:- コマンドパレットから
Extensions: Install from VSIX...を実行 - 生成された
.vsixファイルを選択
- コマンドパレットから
- Node.js
- pnpm
- Visual Studio Code
# リポジトリをクローン
git clone https://github.com/yourusername/vs-assets-viewer.git
cd vs-assets-viewer
# 依存関係をインストール
pnpm install
# 開発モードで実行
# F5 キーを押すか、「実行とデバッグ」パネルから「Run Extension」を選択# TypeScript のコンパイル
pnpm run compile
# または監視モードでコンパイル
pnpm run watch
# パッケージ化
pnpm run packageMIT
