Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>flex-previewNew to Visual Studio Code? Get it now.
flex-preview

flex-preview

Jun Simons

|
60 installs
| (1) | Free
Preview websites on mobile devices with flexible sizing
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Flex Preview

Test responsive websites with ease!

Flex Preview is a VSCode Extension for easy mobile previews at any custom device resolution. It also supports multiple preset device resolutions in addition to custom scaling.

To get started, simply install on the VSCode extensions marketplace, and run Flex Preview: Show Preview in the control palette.

Interactive Device Dropdown

Features

Flex Preview provides a simple and powerful way to test the responsiveness of your web applications directly within your editor.

Live Preview with Interactive Controls

Instantly launch a preview panel with a convenient dropdown menu to switch between devices. This is perfect for local development servers (e.g., http://localhost:3000) or viewing any live URL.

Interactive Device Dropdown

Automatic Responsive Scaling

The device preview automatically and smoothly scales down to fit the available space in your editor panel. This allows you to test high-resolution tablet layouts without ever overflowing the screen, while the website inside renders at its true resolution.

Custom Device Resolutions

For precise testing, use the Command Palette to set any custom width and height you need. For many, the preset options may be enough!

  • Flex Preview: Show Preview - Launches the preview panel.
  • Flex Preview: Set Custom Resolution - Prompts for a custom width and height.
  • Flex Preview: Select Preset Resolution - Provides a command-based alternative to the UI dropdown.

Requirements

This extension requires Visual Studio Code version 1.86.0 or higher.

Extension Settings

This extension does not contribute any VS Code settings at this time.

Release Notes

1.0.3

Additions:

  • UI width/height box
  • Improved smooth scaling

Bug fixes:

  • extension running in background fixed
  • resize command fixed
  • lowered VSCode version requireement

1.0.0

Initial release of Flex Preview, featuring:

  • Live preview webview panel.
  • Preset and custom device resolutions.
  • Interactive dropdown for device selection.
  • Automatic scaling to fit the editor panel.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft