Skip to content
| Marketplace
Sign in
Visual Studio Code>Testing>Device View OfficialNew to Visual Studio Code? Get it now.
Device View Official

Device View Official

Ing Joel Caraballo

|
3 installs
| (0) | Free
See how your site looks on an iPhone 17 Pro Max or Google Pixel 7 while you work in VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Device View Official

When you're working on a website, it's handy to keep a phone preview next to your code. Device View lets you open your local site on an iPhone 17 Pro Max or Google Pixel 7 preview and interact with it as you work.

Made by Ing. Joel Caraballo.

Quick start

  1. Start your local development server.
  2. Select the Device View icon in the Activity Bar.
  3. Enter the port or URL, then choose a device.

On Windows, Device View opens a movable phone window. Use Change beside the device name to switch models, or use the placement menu to tile the phone beside VS Code, keep it on top, or adjust its size.

On macOS and Linux, the device preview opens in a floating VS Code window. The native Windows phone frame, adaptive status bar, and automatic tiling are Windows features.

Supported devices

Device Emulated screen Device pixel ratio
iPhone 17 Pro Max 440 × 956 CSS px 3
Google Pixel 7 412 × 915 CSS px 2.625

Screen dimensions describe the emulated display. The browser controls take up part of that space in the native phone window. The visible frame size depends on your monitor and display scaling.

Preview features

  • Native phone browser on Windows. Edit the address, go back or forward, reload, and interact with your site using simulated touch. The status area uses the page's theme color when available and adjusts the clock, battery, Wi-Fi, and signal icons for contrast.
  • Side-by-side comparison. Run Device View: Open Simulator to compare both devices in an editor tab, rotate the previews, and export PNG screenshots.
  • Local projects. Use your own dev server, run Device View: Start Project for a project with a dev or start script, or right-click a standalone HTML file and choose Device View: Preview HTML File.

Requirements

Use desktop VS Code with Microsoft Edge, Google Chrome, or Playwright Chromium available. The previews use Chromium with device-specific screen dimensions, pixel density, user agents, and touch input. Safari-specific rendering and native iOS or Android behavior require separate device testing.

Development

Run npm ci, then press F5 in VS Code to open an Extension Development Host. Run npm run check to check JavaScript syntax.

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