
VSCode Window History
A keyboard-first window switcher for VSCode that lets you quickly jump between your open workspace windows.

✨ Features
- Cycle through open windows using a keyboard shortcut.
- Press digits (1–9) to instantly jump to a specific window.
- Use arrow keys to navigate the pick list.
- Press Enter to switch to the selected window.
🚀 Usage
Press your configured shortcut (e.g. Command+^
).
→ A quick pick dialog appears showing your most recently used VSCode windows.
Navigate:
→ Press 1–9 to jump directly to a window.
→ Use Arrow Keys or press the shortcut again to move selection down.
→ Press Enter to jump to the selected window.
→ Press Esc to cancel.
💡 Windows are sorted by last activity time (most recent on top).
⚙️ Shortcut Configuration
To use the extension effectively, you’ll want to assign a custom keyboard shortcut to trigger the switcher:
- Open the Command Palette with
Command+Shift+P
or Ctrl+Shift+P
- Choose "Preferences: Open Keyboard Shortcuts"
- Search for:
vscode-window-history.goToPreviousWindow
- Click the "+" icon to assign your preferred keybinding (e.g.
Command+^
)

🧠 How It Works
Each workspace window writes its identity (PID and path) to a shared file:
~/.vscode-window-history/history.json
When the command is triggered:
- The history file is read.
- Your current window is excluded.
- A dialog is shown to choose another window.
- The chosen window is moved to the beginning of the list.
- The rearranged list is saved back into the history file.
The extension was developed especially for macOS users, because the operating system does not offer an easy way to quickly jump back and forth between recent windows. However, the extension also works under Linux and Windows and may also be a useful tool there.
🛟 Help
If you have any questions or found a bug, first take a look at the open and closed issues. If you cannot find an answer, don't hesitate to get in touch and open a new issue. We are happy to help.
📄 License
MIT License