Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Auto-split Fix for New Claude Code TabsNew to Visual Studio Code? Get it now.
Auto-split Fix for New Claude Code Tabs

Auto-split Fix for New Claude Code Tabs

interface-layer

| (0) | Free
Fix Claude tabs. No splitting!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Code — VSCode: Fix for New-Tab Auto-Splitting

This 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:

Demo: the tab jumping back to the original editor group

Purpose

Claude'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.

Notes

Mechanics

It also catches the sibling annoyance (anthropics/claude-code#33884): with Claude Code docked in the sidebar, clicking a file link — a Read tool result, say — opens that file in a brand-new editor group instead of the one you were working in. A file that opens alone in a fresh group gets moved back too, unless the same document is already visible in another group, since that layout is what a deliberate split-to-the-side looks like. This half is controlled by claudeAutoSplitFix.moveFileTabs.

Kill Switch

A 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 claudeAutoSplitFix.moveFileTabs.

How to Use

From the Marketplace

  • VS Code: search the Extensions view for "Auto-split Fix for New Claude Code Tabs", or run code --install-extension interface-layer.claude-auto-split-fix.
  • Cursor, Windsurf, VSCodium: install the same ID from Open VSX.

Build & Install

Build the VSIX:

npm install
npm run package        # writes dist/claude-auto-split-fix-<version>.vsix

In VS Code:

  • Ctrl+Shift+P to open Command Palette
  • Select Extensions: Install from VSIX...
  • pick the VSIX file (in dist/ after a build)
  • Reload

Settings

Setting Default Purpose
claudeAutoSplitFix.enabled true Turn the correction on or off.
claudeAutoSplitFix.moveFileTabs true Also move a file that opens alone in a brand-new group (the sidebar file-link case) back into the previous group. Turn off if you deliberately open not-yet-open files into new splits — the tab API cannot tell those apart from a Claude file link.
claudeAutoSplitFix.restoreDelayMs 400 How long to wait before correcting. Claude stamps its identity on the tab a few hundred ms after opening it, so this cannot be too small.
claudeAutoSplitFix.diagnostics true Log tab and group events to the "Claude Auto-Split Fix" output channel.

Troubleshooting

If 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

Path Contents
package.json Extension manifest.
extension.js The entire implementation.
icon.png 128×128 icon that ships in the VSIX.
test/ npm test: node-only harness against a mocked VS Code API. npm run test:vscode: integration checks in a real, briefly visible VS Code window. Neither ships.
dist/ Current build output.

Scope

A 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.

License

Unofficial. Not affiliated with Anthropic.

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft