-
Notifications
You must be signed in to change notification settings - Fork 0
Screen Mirroring
Caspian-Explorer edited this page Feb 25, 2026
·
1 revision
View and interact with the emulator screen inside VS Code.
- Right-click an emulator in Connected Devices → Show Emulator Screen
- Or via command:
Caspian: Show Emulator Screen
The extension captures the screen using adb shell screencap, encodes it as base64, and sends it to a webview panel. This provides approximately 1 frame per second.
For better performance, install scrcpy — the extension will auto-detect it.
Click anywhere on the screen image to send a tap event to the emulator. The click coordinates are mapped to the device's screen resolution.
Three buttons below the screen:
- Back — sends KEYEVENT_BACK (key 4)
- Home — sends KEYEVENT_HOME (key 3)
- Recents — sends KEYEVENT_APP_SWITCH (key 187)
For higher-quality mirroring:
| Platform | Command |
|---|---|
| Windows | winget install Genymobile.scrcpy |
| macOS | brew install scrcpy |
| Linux | sudo apt install scrcpy |
Or set a custom path: caspian.scrcpyPath