Window Group Manager
A VS Code extension that allows you to save and restore groups of VS Code windows (workspaces) with their optional open tabs and layouts.
Features
- Mark Windows for Grouping: Mark multiple VS Code windows (opened with
code . ) to be grouped together
- Save Window Groups: Save all marked windows as a named group, with option to include open tabs
- Restore Window Groups: Restore previously saved window groups - opens all workspaces in new VS Code windows
- List Groups: View all saved window groups with details
- Rename Groups: Rename existing window groups
- Delete Groups: Remove saved window groups
- Status Bar Integration: Visual indicator showing if current window is marked
Usage
Method 1: Quick Save (Recommended)
- Run "Window Group: Quick Save Window Group"
- Choose how to select windows:
- Add Current Window: Just save the current window
- Add by Folder Paths: Enter workspace paths manually
- Use Marked Windows: Use windows you've marked for grouping
- Choose whether to save open tabs (for current window only)
- Enter a name for your group
Method 2: Save by Folder Paths
- Run "Window Group: Save Group by Folder Paths"
- Choose whether to include current window
- Enter additional workspace folder paths separated by semicolons
- Enter a name for your group
Method 3: Mark Windows Individually
Mark Windows:
- Open each VS Code window you want to group
- In each window, run "Window Group: Mark Window for Grouping"
- A status bar indicator will show the window is marked
Save the Group:
- In any marked window, run "Window Group: Save Marked Windows as Group"
- Choose whether to save open tabs along with workspaces
- Enter a name for your group
Restoring a Window Group
- Open Command Palette (
Ctrl+Shift+P / Cmd+Shift+P )
- Run "Window Group: Restore Window Group"
- Select the group you want to restore
- Each workspace will open in a new VS Code window
Managing Groups
- List Groups: Run "Window Group: List Window Groups" to see all saved groups
- Rename Group: Run "Window Group: Rename Window Group"
- Delete Group: Run "Window Group: Delete Window Group"
- Toggle Mark: Click the status bar item or run "Window Group: Toggle Window Mark"
Development
Prerequisites
Setup
npm install
Build
npm run compile
Test
Press F5 in VS Code to launch a new window with the extension loaded.
Known Limitations
- Tab restoration in new windows requires the extension to be installed and active
- Window positioning is controlled by VS Code and may not match original layout
- Works best with workspace folders (directories opened with
code . )
- Custom editors may not restore perfectly when tabs are saved
| |