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

| (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.

Commands

  • Resize Window: Set Size…
  • Resize Window: 1280×720
  • Resize Window: 1400×900
  • Resize Window: 1920×1080

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.

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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft