Multiple EditorSpace

Multiple EditorSpace is a Visual Studio Code extension designed to assist your workflow by allowing you to manage multiple "editor spaces" within a single window.
It acts as a companion to your standard workspace, giving you the ability to save your current open files and editor layout (splits, grids, etc.) and switch between them as needed. This is particularly helpful for developers working on multiple features or contexts who want to maintain organized window setups for each specific task.
Key Features
Smart Layout Persistence
The extension preserves your editor layout when you switch spaces. When you return to a saved space, your split views, grid arrangements, and active files are restored exactly as they were.
Logical Grouping
You can organize your spaces into Groups (e.g., "Project Alpha", "Reference", "Main Task") to keep your list distinct and manageable.
- Filter: View only the spaces relevant to your current focus.
- Manage: Rename or delete entire groups efficiently.
File Safety System
EditorSpace includes features to help maintain consistency as your project changes:
- Auto-Update on Rename: If you rename a file, the extension automatically updates the references in your saved spaces.
- Deleted File Recovery: If a file saved in a space is deleted, the extension detects this upon return. It caches the content of the deleted file, offering you the option to view what was previously there.
Status Bar Integration
Access your spaces conveniently from the status bar:
- Instant Switch: Click the space name to switch contexts.
- Group Context: See and change the current active group directly.
How to Use
1. Create a Space
Arrange your editor window with the files and splits you need.
- Open Command Palette (
Ctrl+Shift+P / Cmd+Shift+P).
- Run
Create New EditorSpace.
- Enter a name and optionally assign it to a Group.
2. Switch Contexts
- Via Status Bar: Click the space name in the bottom bar to switch between spaces in the current group.
- Via Command: Run
Switch EditorSpace to see a list of all spaces or to change the active group view.
3. Manage Your Spaces
- Move: Use
Move EditorSpace to reorganize spaces between groups or to merge groups.
- Rename: Use
Rename EditorSpace to update names.
- Delete: Use
Delete EditorSpace to remove spaces you no longer need.
Commands Reference
| Command Title |
Description |
| Create New EditorSpace |
Snapshot current layout into a new space. |
| Switch EditorSpace |
Switch to another saved space or change the active group view. |
| Move EditorSpace |
Move a space to another group, or merge groups. |
| Rename EditorSpace |
Rename a space or a group. |
| Delete EditorSpace |
Remove a specific space or an entire group. |
Configuration
Your saved layouts are stored locally in your workspace:
.vscode/editorspaces.json
You can choose to commit this file to share layouts or ignore it for personal use.