VS Code extension: auto-open/pin the file Claude is reading or editing in a side editor group

Open 💬 0 comments Opened Jul 14, 2026 by moritakashi1

When using Claude Code inside the VS Code extension, I'd like the file Claude is currently reading/editing to automatically open in a split editor group next to the chat, so I can watch it update in real time as Claude works.

Today this requires a manual routine at the start of every session: click the file (from a Read/Edit tool-call entry or the Explorer) to open it as a tab, then manually drag it into a split (or use the split-editor shortcut). I tried setting claudeCode.preferredLocation to "sidebar" hoping it would free up the main editor area for files to open automatically, but Read/Edit tool calls still don't open the target file as an editor tab at all — it has to be opened manually every time.

Request: an option (or default behavior) to automatically open the file currently being read/edited in the adjacent editor group, and ideally remember that split layout across sessions in the same workspace, so this doesn't need to be redone manually every session.

View original on GitHub ↗