VSCode Window Resizer (OS-level)
Resizes the main VS Code window to a specific size using OS tools.
Now supports VS Code forks such as Google Antigravity via an
optional opt-in setting.
✨ New: Antigravity Opt-In Support
This extension can now run in Google Antigravity and other VS
Code--compatible editors.
By default, the extension automatically detects the host editor using:
vscode.env.appName
If automatic detection fails (for example, due to a custom build or
window title differences), you can manually opt-in.
Enable Antigravity manually
Add this setting:
{
"windowResizer.appHint": "Antigravity"
}
This helps the extension match the correct window process/title when
resizing.
⚠️ Important
The extension must run on the UI/local side.
It will not work when installed only inside WSL/SSH remote
environments.
Commands
Resize Window: Set Size...
Resize Window: 1280×720
Resize Window: 1400×900
Resize Window: 1920×1080
Resize & Center: Set Size...
Resize & Center: 1280×720
Resize & Center: 1400×900
Resize & Center: 1920×1080
Resize & Center: Choose Monitor... (Windows)
Requirements
- Windows: PowerShell allowed to run local scripts.
- macOS:
osascript (built-in). Allow Accessibility control.
- Linux (X11):
wmctrl installed. Wayland is not supported by
default.
Settings
Multi-Editor Compatibility
The extension works with:
- Visual Studio Code (stable & insiders)
- Google Antigravity
- Most VS Code forks running on Electron
Window detection is based on:
- Process name
- Window title
- Electron window class
- Optional
appHint override
Limitations
VS Code's extension API does not expose window sizing; this extension
shells out to OS utilities.
Fullscreen/maximized windows are restored before resizing.
On Linux:
- Only supported under X11
- Not supported under Wayland by default
In Remote environments (WSL/SSH):
- The extension must be installed locally (UI side)
- It cannot resize a window running on a different host