Tab Group for VS CodeOrganize editor tabs into persistent, named groups from the Tab Group activity-bar view. The extension is inspired by browser tab groups while respecting VS Code's native editor and tab behavior.
Features
UsageOpen the Tab Group activity-bar view. Drag tabs directly to group them. Each new group gets the lowest unused default name, such as Group 1, prefilled in the naming prompt. Keep it or enter a unique name. Use the view title actions to enable Manual Reorder and to collapse, expand, or reset all groups. Empty or whitespace-only names generate a unique default. Cancelling the creation prompt keeps its default; cancelling a rename preserves the current name. Existing groups are never renumbered after deletion, sorting, or reload. Use the ... menu in the Tabs view title to switch between View as Tree and View as List. Tree mode groups resource-backed tabs by workspace-relative directory inside the root and each named group. Resource-backed tabs outside the current workspace, and tabs without a usable resource path, remain direct leaves; external resource tabs show their full location in the tooltip. The selected view is persisted with the workspace. Manual Reorder is available only in List view, while the predefined URI sort actions remain available in both views.
Dropping an item onto another inserts it immediately before the target. With Manual Reorder enabled, tabs and groups can only be reordered within their current parent, so reordering never changes group membership. The view title shows Tabs (Reordering) until you select Done. The view-title sort control orders root tabs by File URI, every group's tabs by File URI, and root groups by name. A group sort control orders only that group's tabs by File URI. Each control switches to the opposite direction after it is used. Group controls toggle independently, while a root sort resets every group control to its next direction. Root tabs and groups reorder only among their existing root positions. Sorting changes the Tabs tree only; it does not reorder VS Code's editor tabs. The Recent Tabs view lists ungrouped tabs by most recent activation; drag a tab from it onto a group in the Tabs view to organize it.
Hover a folder in the Tabs tree and use the save action on the row to snapshot every open tab below that folder, including nested subfolders, in one step. The snapshot uses the folder's stable identity, so saving the same folder again updates its existing snapshot instead of adding a duplicate. Use Save Group... from a group context menu to create or update a snapshot without entering a name. The snapshot uses the live group's ID as its stable identity and its group label as the display name, showing untitled when the group has no name. Renaming a live group automatically updates the title of its saved snapshot. Saving the same live group again updates its existing snapshot. Expand the Saved Groups panel to see snapshots and their tab counts, then expand a snapshot to inspect its saved files. Duplicate file names show the shortest distinguishing parent path. Use the panel toolbar to sort snapshots by name, expand or collapse all snapshots, restore all snapshots, or delete all snapshots. Saved snapshot order is persisted, and when snapshots share a tab, Restore All Saved Groups gives that tab to the first snapshot shown in the panel. Use a snapshot's folder action to restore it or its trash action to remove it from saved workspace storage. Restore Saved Group... is also available from the Command Palette. Tab supportAdd to Chat
With GitHub Copilot Chat enabled, right-click a tab or live group in Tabs, a tab in Recent Tabs, or a saved group or file in Saved Groups, and choose Add to Chat. The leftmost inline button provides the same action. Select multiple tabs or groups to attach their files together. The action adds context to the chat input without sending a message or changing your tab groups. Saved groups use their stored file URIs without reopening tabs or restoring the snapshot. Duplicate files are attached once. Text, custom-editor, and notebook tabs use their file resource; diffs use the modified file, matching VS Code's Add File to Chat behavior. Local, remote, and untitled resources are supported. System tabs and unsupported URI schemes are skipped; a selection with no supported files shows an informational message. Saved files must still be accessible for chat to read their contents. Supported InputsTab Group supports text editors, text diffs, custom editors, notebooks, and notebook diffs with stable IDs. Saved tab groups restore the same resource-backed input types. System editor tabs that VS Code exposes without a public input, including Settings, Keyboard Shortcuts, and extension detail pages, appear in the Tabs tree. They can be grouped and closed while open. VS Code does not expose a public operation to activate or reopen an individual system-editor instance, so these tabs are not included in Saved Groups. When saving a mixed group, Tab Group saves its restorable tabs and reports any skipped live-only tabs; a group containing only live-only tabs cannot be saved. Restoring into the existing live group preserves any currently open live-only system tabs while replacing its saved-tab members. Terminal and webview panel tabs remain omitted. Development
Use Run Extension in VS Code to launch an Extension Development Host. See docs/testing.md for automated and manual testing, and docs/development.md for packaging, CI, and Marketplace releases. Automatic stable and preview releases skip documentation-, test-, and CI-only changes; regular CI still runs.
Release-prep PRs can be merged by the release app after CI without bypassing the separate Contributing and SupportPlease report defects and feature requests in the issue tracker. Read SUPPORT.md for support expectations. |




