Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quick Window SwitcherNew to Visual Studio Code? Get it now.
Quick Window Switcher

Quick Window Switcher

ThangNC 0101

|
1 install
| (0) | Free
List open VS Code windows in the sidebar, sorted by most recently used, and switch with one click.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Quick Window Switcher

List every open VS Code window in the Activity Bar, sorted by most recently used, and switch to one with a single click.

Features

  • Windows view in the Activity Bar: every open window, most recently focused first, with how long ago each one was focused. The current window is highlighted.
  • Click an entry to bring that window to the front. No new window is opened and nothing reloads.
  • Window Switcher: Switch Window (Most Recently Used): a Quick Pick of the other windows (default key ctrl+alt+w).
  • Window Switcher: Switch to Previous Window: jumps straight to the last window you used, like Alt-Tab. It has no default key, so bind one in Keyboard Shortcuts.
  • Works with folders, saved .code-workspace files, untitled multi-root workspaces and remote windows (the extension runs on the UI side).

Settings

Setting Default Description
windowSwitcher.showCurrentWindow true Show the current window in the list
windowSwitcher.showPath false Show the folder or workspace path next to the name

How it works

Each window's extension host writes a small JSON entry (name, target URI, last focus time, heartbeat) to <user-data>/User/globalStorage/thangnc0101.window-switcher/windows/. Every window watches that folder. Switching calls vscode.openFolder(target, { forceNewWindow: true }). When a window already has that folder or workspace open, VS Code focuses that window instead of opening a new one.

Limitations

  • An empty window (no folder open) is listed, but you can't switch to it because it has no folder or workspace to target.
  • Only windows of the same VS Code installation and user-data-dir are listed. For example, Stable and Insiders don't see each other.
  • A window that is closed or crashes leaves the list within a few seconds, or within 45 seconds at most if the process hangs.

Build

npm install
npm run compile
npx vsce package --no-dependencies --allow-missing-repository
code --install-extension window-switcher-0.1.0.vsix
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft