Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Window Resizer (OS-level)New to Visual Studio Code? Get it now.
Window Resizer (OS-level)

Window Resizer (OS-level)

Leonam Developer

|
106 installs
| (0) | Free
Resize and center the VS Code window using OS APIs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  • windowResizer.offsetX / windowResizer.offsetY
    → Top-left position.

  • windowResizer.appHint
    → Optional override for editor name (e.g. "Antigravity").


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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft