Claude Code — VSCode: Fix for New-Tab Auto-SplittingThis VSCode extension provides a simple workaround for a longstanding bug in Anthropic's Claude Code extension. It immediately shifts new, stranded Claude tabs back where they belong. As seen here:
PurposeClaude's VS Code toolbar button has a weirdly opinionated behavior: when creating a new CC conversation, it first creates a new Editor group (splitting your working space in half) -- puts the new conversation tab in it, then locks the group. Standard UX would place the new tab as a sibling of your current tab, in the same Editor group. While I'm comfortable calling this a bug, several GitHub issues tracking this problem were recently designated "closed-as-unplanned" -- suggesting this won't change any time soon. Hence, this extension which simply fixes that odd behavior. It unlocks the group, and moves the freshly created tab back into your active group automatically; the superfluous editor group then dies automatically. NotesMechanicsIt also catches the sibling annoyance (anthropics/claude-code#33884): with Claude Code docked in the sidebar, clicking a file link — a Kill SwitchA few plausible scenarios exist in which you'd want the above detection disabled (if you often spawn blank tabs into new editor group) try toggling How to UseFrom the Marketplace
Build & InstallBuild the VSIX:
In VS Code:
Settings
TroubleshootingIf the tab is not being moved, run Claude Auto-Split Fix: Show Diagnostic Output from the Command Palette. The channel records every group and tab event, why a candidate was skipped, and whether the correction ran. Known limits of the file-link correction, all deliberate do-no-harm choices: a link to a file already open in another group is left alone (that layout also describes your own splits); for about 2.5 seconds after any new split appears — yours or a pending correction's — further corrections stand down rather than risk moving a file into the wrong group, so the second of two rapid link clicks keeps its split; and a link clicked within about a second of closing a tab on the same file reads as a drag and is left alone. Layout
ScopeA workaround for current Claude Code extension behavior. If Anthropic adds native support for opening a new conversation in the active editor group, disable or uninstall this extension. LicenseUnofficial. Not affiliated with Anthropic. MIT |
