Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VitrineNew to Visual Studio Code? Get it now.
Vitrine

Vitrine

yuntaengtaeng

| (0) | Free
Live previews of @preview-annotated React components beside your editor, rendered by your Vite dev server.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vitrine for VS Code

See your React component previews beside the file you are editing.

Vitrine shows the gallery served by vite-plugin-react-vitrine in a VS Code panel. Your Vite dev server does all the rendering, so previews look exactly like your app.

Features

  • Preview panel. Run Vitrine: Open Preview to open the gallery next to your editor.
  • Follows your cursor. Move the cursor onto a /** @preview */ export and the panel switches to that preview.
  • Finds your dev server. The panel connects to the project of the active file. If several dev servers are running, you pick one. Switch Project changes it at any time.
  • Stays out of your way. The preview's editor group is locked, so files you open land in your code editor instead of covering the preview. To turn this off, set "mainThreadWebview-vitrine.preview": false in workbench.editor.autoLockGroups.

Requirements

  1. Add vite-plugin-react-vitrine to your Vite config. See the plugin README.
  2. Start your Vite dev server. The extension does not start it for you.

Usage

  1. Open a component file with a /** @preview */ export.
  2. Run Vitrine: Open Preview from the command palette.
  3. Move your cursor between previews, or pick one from the gallery sidebar.

Known limitations

  • Cursor tracking only works inside the project the panel is showing. Use Switch Project to follow a file from another project.

License

MIT

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