Device View OfficialWhen 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
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
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
RequirementsUse 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. DevelopmentRun npm ci, then press F5 in VS Code to open an Extension Development Host. Run npm run check to check JavaScript syntax. |