Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Claude LayoutNew to Visual Studio Code? Get it now.
Claude Layout

Claude Layout

Giovanni De Lucia

| (0) | Free
Unofficial. Opens every window with the explorer on the left and Claude Code running in a terminal on the right; external launchers can ask it to resume a session.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Claude Layout

test

A tiny VS Code extension for people who run Claude Code as a CLI in the integrated terminal rather than in the chat panel.

Every window opens ready to work: the explorer on the left, the panel on the right with a terminal already running claude. No setup per project, no keystrokes.

It also gives scripts and launchers a safe way to say "open this folder and resume that Claude session" (see Launch requests).

About 150 lines of plain JavaScript, no dependencies, no network, no telemetry.

Unofficial. A community extension, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.

Install

From the VS Code Marketplace: search for Claude Layout in the Extensions view, or

code --install-extension gio-del.claude-layout

Or download claude-layout-<version>.vsix from the latest release, then:

code --install-extension claude-layout-<version>.vsix

Claude Code must be installed and claude on your PATH.

What it does on startup

  1. Moves the panel to the right (configurable) and closes the secondary side bar.
  2. Opens a terminal named Claude in the first workspace folder and runs claude in it, unless one is already there.
  3. Focuses the explorer.

Run Claude Layout: Apply layout from the command palette to do it again at any time.

Settings

Setting Default
claudeLayout.openOnStartup true Apply the layout and start Claude when a window opens. Launch requests work either way.
claudeLayout.panelPosition right right, bottom or left.
claudeLayout.closeSecondarySideBar true Close the secondary side bar so the terminal gets the room.
claudeLayout.command claude Command started in the terminal (for example a wrapper script). User settings only: a repository's .vscode/settings.json cannot change it.

Launch requests

A launcher that opens a VS Code window can ask the extension to start Claude with specific arguments, for example to resume the last session of a project.

Before running code, write a JSON file:

$XDG_RUNTIME_DIR/claude-layout/<key>.json      (or $TMPDIR/claude-layout-<uid>/ without XDG_RUNTIME_DIR)
{"args": ["--resume", "6b445f0a-0785-49ef-a446-de6d2ccc2466"], "at": 1795856129}
  • <key> is encodeURIComponent of the absolute path you pass to code: the folder, or the .code-workspace file for a multi-root window.
  • at is the current time in epoch seconds. Requests older than 2 minutes are ignored. Each request is read once and deleted.
  • If the window is already open, code only focuses it; the extension watches the directory and applies the request anyway.

Only these arguments are accepted, anything else is rejected with a warning:

  • optionally --resume <session uuid> or -n <name> (lowercase letters, digits, dashes);
  • then any number of --add-dir <path>, where <path> is one of the window's other workspace folders.

The directory must belong to you and must not be accessible to other users, otherwise requests are ignored.

A shell example that opens a multi-root workspace and resumes a session with access to all its folders:

dir="${XDG_RUNTIME_DIR}/claude-layout"; mkdir -p -m 700 "$dir"
ws="$HOME/work/app.code-workspace"
key=$(node -e 'process.stdout.write(encodeURIComponent(process.argv[1]))' "$ws")
printf '{"args":["--resume","%s","--add-dir","%s"],"at":%s}\n' "$SESSION" "$HOME/work/app-api" "$(date +%s)" > "$dir/$key.json"
code --new-window "$ws"

Development

npm test          # unit tests, with a stub of the VS Code API
npm run package   # builds the .vsix with @vscode/vsce

Releases: bump version in package.json, add a line to CHANGELOG.md, then create a GitHub release tagged v<version>. The publish workflow tests, builds, attaches the .vsix to the release and publishes it to the Marketplace (Trusted Publishing, no stored token).

License

MIT

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