Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>TerminalGridNew to Visual Studio Code? Get it now.
TerminalGrid

TerminalGrid

Max Ghenis

|
39 installs
| (0) | Free
Terminal grid management with keyboard shortcuts and optional auto-launch for CLI tools (Claude Code, Aider, Codex, etc)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TerminalGrid

VS Code Marketplace GitHub Release

Transform VS Code into a powerful terminal workspace with keyboard-driven grid management and optional auto-launch for CLI tools.

Features

  • 🎹 Keyboard-Driven Grid Management: Create complex terminal layouts with simple shortcuts
  • 📁 Project Picker: Searchable list of all your projects when opening terminals
  • 🚀 Optional Auto-Launch: Run any command in every new terminal (AI tools, dev servers, etc.)
  • 🖼️ Image Support: Paste screenshots directly into terminals (unlike native terminal grids)
  • 💾 Crash Recovery: Terminal directories persist even after VS Code crashes
  • ⚙️ Simple Configuration: Configure your project directories once, pick projects instantly

Why TerminalGrid?

VS Code's integrated terminal only supports horizontal splitting (side-by-side). There's no native way to stack terminals vertically or create complex grids. This has been requested for years in VS Code issues #56112, #160501, and #162710, but hasn't been implemented.

TerminalGrid solves this by moving terminals to the editor area, where you get full horizontal and vertical split control.

Additionally, image pasting in native terminals is unreliable for Claude Code and other AI tools (see issues #1361, #5392, #834). VS Code's terminal integration provides much better support for pasting screenshots and dragging files.

For AI-driven coding: Run multiple concurrent AI coding sessions in a clean grid layout. Paste screenshots reliably for visual debugging. Manage everything from one workspace instead of scattered terminal windows.

For regular development: Keyboard-driven terminal management is useful even without auto-launch. Quickly create complex grid layouts for dev servers, test runners, log monitoring, and interactive shells.

Keyboard Shortcuts

Shortcut Action
Cmd+K Cmd+Down (Mac)
Ctrl+K Ctrl+Down (Win/Linux)
Split down → pick project → launch
Cmd+K Cmd+Right (Mac)
Ctrl+K Ctrl+Right (Win/Linux)
Split right → pick project → launch
Cmd+K Cmd+N (Mac)
Ctrl+K Ctrl+N (Win/Linux)
New terminal → pick project → launch
Cmd+K Cmd+R (Mac)
Ctrl+K Ctrl+R (Win/Linux)
Refresh terminal names by folder
Cmd+1/2/3/4 (Mac)
Ctrl+1/2/3/4 (Win/Linux)
Jump to specific terminal pane

When you use any terminal shortcut, a searchable project picker appears. Type to filter, select a project, and the terminal opens with cd <project> && <your-command>.

Installation

VS Code Marketplace (recommended):

  1. Open VS Code
  2. Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)
  3. Search for "TerminalGrid"
  4. Click Install

Or install via command line:

code --install-extension MaxGhenis.terminalgrid

Manual Installation:

Download the .vsix from GitHub Releases, then:

  • In VS Code: Extensions → ... menu → "Install from VSIX..."

Configuration

terminalgrid.autoLaunchCommand

Command to run when opening a new terminal. Leave empty for plain terminals.

Examples:

{
  "terminalgrid.autoLaunchCommand": "claude --dangerously-skip-permissions"
}
{
  "terminalgrid.autoLaunchCommand": "aider --auto-commits"
}
{
  "terminalgrid.autoLaunchCommand": "codex"
}
{
  "terminalgrid.autoLaunchCommand": "gh copilot"
}

Popular AI Coding CLI Tools:

  • Claude Code - claude (Anthropic)
  • Codex CLI - codex (OpenAI)
  • Gemini CLI - gemini (Google, free)
  • GitHub Copilot CLI - gh copilot (GitHub/Microsoft)
  • Aider - aider (open source)
  • OpenHands - openhands (open source)

terminalgrid.projectDirectories

Parent directories to scan for project folders. When you create a new terminal, you'll see a searchable list of all subfolders from these directories.

{
  "terminalgrid.projectDirectories": [
    "~/projects",
    "~/code",
    "~/Documents/GitHub"
  ]
}

Supports ~ expansion. Workspace folder parents are always included automatically.

Other Settings

terminalgrid.enableTerminalsInEditor Open terminals in editor area for full grid control (default: true)

terminalgrid.enablePersistentSessions Restore terminal sessions across restarts (default: true)

terminalgrid.autoConfigureOnInstall Auto-configure settings on first install (default: true)

terminalgrid.autoNameByFolder Automatically name terminals based on their working directory (default: true)

Quick Setup

  1. Open Settings (Cmd+, / Ctrl+,)
  2. Search for "TerminalGrid"
  3. Set Project Directories to your project parent folders (e.g., ~/projects, ~/code)
  4. Set Auto Launch Command to your preferred tool (e.g., claude) or leave empty
  5. Done! Use Cmd+K Cmd+N to pick a project and start working

Example Workflow: Claude Code Superterminal

┌─────────────────┬─────────────────┐
│  policyengine   │  api-server     │
│  (Claude Code)  │  (Claude Code)  │
├─────────────────┼─────────────────┤
│  docs           │  frontend       │
│  (Claude Code)  │  (Claude Code)  │
└─────────────────┴─────────────────┘

Setup:

{
  "terminalgrid.projectDirectories": ["~/projects"],
  "terminalgrid.autoLaunchCommand": "claude"
}

Usage:

  1. Cmd+K Cmd+N → Pick "policyengine" → Claude launches
  2. Cmd+K Cmd+Right → Pick "api-server" → Claude launches in right pane
  3. Cmd+K Cmd+Down in left → Pick "docs" → Claude launches below
  4. Cmd+K Cmd+Down in right → Pick "frontend" → Claude launches below
  5. 2x2 grid with each Claude in a different project!

Example Workflow: Development (No Auto-Launch)

┌─────────────────┬─────────────────┐
│  web-app        │  api            │
│  (npm run dev)  │  (flask run)    │
├─────────────────┼─────────────────┤
│  tests          │  logs           │
│  (pytest -w)    │  (tail -f)      │
└─────────────────┴─────────────────┘

Setup:

{
  "terminalgrid.projectDirectories": ["~/code"]
}

Use Cmd+K Cmd+Down/Right/N → pick your project → run your commands!

Requirements

  • VS Code 1.80.0 or higher
  • Optional: CLI tools you want to auto-launch

What It Configures

TerminalGrid automatically sets up:

  1. Terminal Location: Moves terminals to editor area for full split control
  2. Terminal Profile: Creates profile with your auto-launch command
  3. Persistent Sessions: Enables session persistence across restarts
  4. Keyboard Shortcuts: Adds grid management shortcuts

Known Issues

  • Windows shell initialization may vary by configuration
  • If using --dangerously-skip-permissions with Claude Code, ensure you trust your workspace

Contributing

Found a bug or have a feature request? Open an issue on GitHub.

Credits

Created by Max Ghenis.

Inspired by a workflow developed while leading PolicyEngine, where we use AI to model tax and benefit policies.

Read the blog post: Turning VS Code into a Claude Code Superterminal (coming soon)

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft