Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Prompt Dock - Terminal Command CenterNew to Visual Studio Code? Get it now.
Prompt Dock - Terminal Command Center

Prompt Dock - Terminal Command Center

Thinnd

|
1 install
| (0) | Free
A command center for the integrated terminal: run saved and discovered commands, track sessions and exit codes, keep a searchable history, launch multi-terminal profiles, and get a clear, colour-coded terminal prompt.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Prompt Dock

A command center for the VS Code integrated terminal.

Quick start · Configuration · Shortcuts · Changelog

Overview

Prompt Dock adds a panel to the activity bar that brings together the commands you run every day, the terminals that are open, and what happened to every command you ran. It builds on the integrated terminal and its shell integration, so your own shell, prompt, aliases and theme stay exactly as they are.

The extension has no runtime dependencies. It is compiled with the TypeScript compiler only, its icons are drawn in-house, and the package is produced by a script in this repository. The installed extension is about 100 KB of JavaScript and CSS.

Quick start

  1. Install the .vsix: open the Extensions view, choose ... > Install from VSIX..., and pick prompt-dock-1.8.7.vsix.
  2. Open the Prompt Dock icon in the activity bar.
  3. Commands from package.json, Makefile, composer.json and Docker Compose files appear automatically. Click the play button to run one.
  4. Press Cmd+Alt+R (macOS) or Ctrl+Alt+R (Windows, Linux) for Quick Run from anywhere.

To share commands and launch profiles with your team, run Prompt Dock: Open Workspace Configuration. It creates .vscode/prompt-dock.json with an example you can edit and commit.

Features

Capability What you get
Sessions Every open terminal with its state (Idle, Running, Succeeded, Exit code), last command, live elapsed time and working directory. Focus, split, rename or kill from the card.
Commands Discovered scripts (npm, pnpm, yarn and bun by lockfile, Make targets with ## descriptions, Composer scripts, Docker Compose), plus pinned workspace and user commands.
Prompted variables ${input:Name}, ${input:Name:default} and ${pick:Name:a,b,c} ask for values when a command runs. Editor variables such as ${file} and ${selectedText} are also supported.
History Every command run in a terminal with shell integration, with exit code, duration, terminal and directory. Filter to failures, rerun, copy, or pin as a command.
Launch profiles Open a set of terminals in one step, each with its own command, directory, environment, colour, icon and optional split.
Quick Run One fuzzy picker for history and all commands. Type any shell command and press Enter to run it directly.
Run selection Send the current line or selection from the editor to the active terminal. Leading $ prompts are removed.
Completion notices A notification when a long command finishes while you are looking elsewhere, with a button to jump to its terminal.
Status bar Number of running commands, or the result and duration of the last one.
Suggestions VS Code's terminal IntelliSense menu opens while you type. In zsh, the rest of a command can also appear as grey text, picked from commands that succeeded in the current folder or repository (preview).
Command colours The command you type in zsh is coloured as you type: green for a command that exists, red for a typo, plus options, strings, variables, operators and comments. Commands in the dock use the same colours.
Terminal appearance Light and dark palettes, success and failure markers beside each command, a sticky header showing the running command, and a two-line prompt with folder, git branch, changes, duration and exit code.

Configuration

Workspace file

.vscode/prompt-dock.json is validated by a JSON schema, so the editor offers completion and checks. Comments are allowed.

{
  "commands": [
    { "label": "Test a file", "command": "npx vitest run ${input:Test file:src}", "group": "Test" },
    { "label": "Deploy", "command": "./scripts/deploy.sh ${pick:Environment:staging,production}", "group": "Release" },
    { "label": "API shell", "command": "npm run repl", "cwd": "packages/api", "terminal": "new" }
  ],
  "profiles": [
    {
      "name": "Development",
      "description": "Server and tests side by side",
      "terminals": [
        { "name": "server", "command": "npm run dev", "color": "terminal.ansiGreen", "icon": "server-process" },
        { "name": "tests", "command": "npm test -- --watch", "split": true, "icon": "beaker" }
      ]
    }
  ]
}

Variables

Variable Value
${input:Name} / ${input:Name:default} Asks for free text. The same placeholder used twice is asked once.
${pick:Name:a,b,c} Asks the user to choose one option.
${workspaceFolder}, ${workspaceFolderBasename} Folder that owns the command.
${file}, ${relativeFile}, ${fileDirname}, ${fileBasename}, ${fileBasenameNoExtension} Active editor file.
${selectedText}, ${lineNumber} Active editor selection and line.
${env:NAME} Environment variable of the VS Code process.

Variables are resolved in commands and in the command of launch profile terminals. A folder, file or selection variable that has no value (no folder open, no editor) cancels the run with a message instead of becoming an empty string. For a profile, a cancelled prompt cancels the whole launch before any terminal opens.

Settings

Setting Default Description
promptDock.run.terminalStrategy dedicated dedicated reuses one terminal per command, active uses the active terminal, new always opens one.
promptDock.run.focusTerminal true Show the terminal panel when a command starts.
promptDock.history.maxEntries 500 History entries kept per workspace.
promptDock.history.captureTypedCommands true Record commands typed directly in terminals, not only those started from the dock.
promptDock.notifications.longRunningThreshold 15 Seconds after which a finished command triggers a notice. 0 disables it.
promptDock.discovery.sources all Which project files to discover commands from: npm, make, composer, compose.
promptDock.appearance.terminalColors true Terminal palette, command markers and sticky command header.
promptDock.appearance.prompt auto auto replaces only the stock prompt, always replaces any prompt, off keeps yours.
promptDock.appearance.gitStatus true Git branch and change counts in the prompt. git status runs in the background, so large repositories do not slow the prompt.
promptDock.suggest.menu true Open VS Code's terminal IntelliSense menu while typing.
promptDock.suggest.inline false Grey inline suggestions in zsh from commands that succeeded here (preview).
promptDock.appearance.syntaxHighlight true Colour the command being typed (zsh) and commands in the dock.
promptDock.appearance.imeHint true Offer to turn off Modern UI when it misplaces input-method text in the terminal.

Terminal appearance

When Prompt Dock first starts, it styles the integrated terminal. New terminals show the change. Terminals that are already open keep their old setup until they are restarted. Developer: Reload Window does not restart them, because VS Code reconnects to the same shell processes. After an update, Prompt Dock offers to restart the idle ones; terminals running a command are never touched.

npm ERR! Test failed.
exit 1 · took 3.2s

~/Projects/acme/api on main* ↑1
❯ npm test
Part Details
Palette Separate light and dark ANSI palettes, chosen from the active theme. High-contrast themes are left unchanged.
Command markers Green and red markers beside each command in the gutter, and a sticky header that shows the command that produced the output on screen. Line height and font are never changed.
Result line Right under a command's output: its exit code if it failed, and its duration if it took 2 seconds or longer (duration in zsh only). Nothing is added for quick, successful commands.
Prompt The line above ❯ always shows where the next command runs: the full path with ~ for home, the parent folders dimmed and the repository name in bold, then the branch, * for uncommitted changes, and ahead and behind counts. The ❯ turns red after a failure.
Shells zsh and bash on macOS and Linux. On Windows, and in fish and PowerShell, only the palette and markers apply.

Performance

Nothing on the prompt's path waits for another program:

Part How it is obtained Cost
Repository and branch Walk up to .git, read HEAD No process
Changes, ahead and behind git status in the background, one at a time per repository Does not block the prompt; zsh updates the prompt when it finishes, bash on the next prompt
Command duration and exit code Shell built-ins No process

Measured on macOS with zsh 5.9:

Moment Cost with every layer on (prompt, colours, suggestions)
Opening a terminal 6.6 ms on top of zsh with VS Code shell integration (19.4 ms)
After each command 0.25 to 0.65 ms in zsh, 3 to 5 ms in bash, including a repository where git status alone takes 15 seconds
Each keystroke 0.36 ms for colours and suggestions together, with 2,000 history lines
Extension activation Under 1 ms of work after loading; terminal events are batched before the dock or status bar is updated
Dock update after a terminal event Only the changed part of the state is sent (about 0.5 KB for a sessions change instead of about 87 KB with 300 commands and 200 history rows); an event that changes nothing sends nothing

How it is applied

  • Colours go into workbench.colorCustomizations in your user settings. A colour or setting you had already customised is never changed. Prompt Dock records exactly what it wrote, so turning the feature off removes only those values.
  • The prompt is loaded through the terminal environment, which VS Code removes automatically if the extension is disabled or uninstalled. For zsh, Prompt Dock sets ZDOTDIR to a small wrapper that first loads your own .zshenv, .zprofile, .zshrc and .zlogin unchanged, then adds the prompt. Your history file stays where it was.
  • If the terminal's character encoding is broken, the wrapper sets LC_CTYPE to a working UTF-8 locale. A common cause is VS Code deriving LANG from a macOS region that has no matching locale, such as en_VN.UTF-8. Without this, multibyte characters (Vietnamese letters, the prompt arrow) are measured as several columns and editing in the middle of a line hides the text after the cursor. Nothing changes when the encoding already works or when you set LC_ALL yourself.
  • The command you are typing is left entirely to the shell; Prompt Dock does not colour or highlight it.
  • In auto mode the prompt replaces only the stock system prompt. Starship, Powerlevel10k, oh-my-zsh themes and hand-written prompts are left alone. Use always to replace them as well.

Suggestions

Two layers, each with its own switch in the dock's ... menu:

Layer What it completes Default
Suggestion menu (VS Code IntelliSense) The word being typed: subcommands, options, files, branches. zsh, bash and fish On
Inline suggestions (Prompt Dock, zsh) The whole command, as grey text after the cursor Off (preview)

The suggestion menu is built into VS Code 1.147 but opens only with Ctrl+Space by default. Prompt Dock sets terminal.integrated.suggest.quickSuggestions so it opens while you type, unless you have set it yourself.

Inline suggestions are picked in this order, first match wins:

  1. Commands that succeeded in the current folder.
  2. Commands that succeeded elsewhere in the same repository.
  3. Project commands: npm scripts, Make targets, pinned commands.
  4. zsh history.
Key Action
→ or End (cursor at the end) Accept the whole suggestion
Alt+→ Accept the next word
Keep typing The suggestion narrows or disappears
  • Commands from Prompt Dock's own history are offered only if they succeeded. zsh's history has no exit codes, so Prompt Dock skips the commands it knows failed (listed from its own history, and noted as they fail in the open shell); an interrupted command (Ctrl+C) is not a failure. Multi-line commands and anything that looks like a credential (password, token, secret, API key, authorization header) are never suggested.
  • The data comes from Prompt Dock's own history and project commands. It is stored in the extension's workspace storage, readable by your user only.
  • While inline suggestions are on, VS Code's own inline suggestion is turned off so the two do not overlap.
  • If zsh-autosuggestions is installed, Prompt Dock leaves inline suggestions to it.

Command colours

While you type in zsh, the command line is coloured:

Part Example Colour
Command that exists git, npm Green
Command that does not exist gti Red
Builtin or keyword echo, if, then Yellow
Alias ll Cyan
Option --oneline, -m Blue
String "fix: login" Yellow
Variable $HOME, ${PATH} Magenta
Operator \|, &&, ;, > Bold
Comment # note Grey
Path that exists ./src, ~/.zshrc Underlined
  • Commands are checked against zsh's own tables, so no process is started. Measured cost is 0.05 to 0.3 ms per keystroke for everyday commands.
  • Colours change only how text is drawn, never where it is, so editing and input methods behave as before.
  • Words after sudo, time, env, nice, xargs and similar are treated as commands, and their own options (sudo -E, nice -n 10) are coloured as options. A command written in quotes or as a variable ("$HOME/bin/tool", $EDITOR) keeps the colours of its parts.
  • If zsh-syntax-highlighting or fast-syntax-highlighting is already loaded, Prompt Dock leaves colouring to it.
  • Requires zsh 5.9 or later, which macOS includes. bash's line editor cannot colour the command being typed.

Commands in the dock use the same colours. Turn both on or off from the dock's ... menu (Turn On / Turn Off Command Colours) or with promptDock.appearance.syntaxHighlight.

Moving the cursor with the mouse

Hold Option (macOS) or Alt (Windows, Linux) and click inside the command you are typing; VS Code moves the cursor there. This is built into VS Code: it sends arrow keys based on shell integration, so selecting, copying and scrolling keep working. It needs editor.multiCursorModifier to be alt (the default) and terminal.integrated.altClickMovesCursor to be on (the default).

Prompt Dock does not offer plain click without a modifier. That needs terminal mouse reporting, which takes over text selection and conflicts with the line editor's redrawing. Version 1.3 tried it and it was removed in 1.4.

Input methods and Modern UI

VS Code 1.147 turns on an experimental Modern UI by default. It moves the terminal layer that shows text being composed with an input method (Vietnamese Telex or VNI, Chinese, Japanese, Korean) about 8px below the line, so composed text appears to drop down while you type. Extensions cannot change VS Code's own styles. Instead, Prompt Dock checks workbench.experimental.modernUI:

Situation What Prompt Dock does
Modern UI is on Offers once to turn it off. Not Now asks again after a week; Don't Show Again stops asking.
Modern UI is off, or the setting does not exist in your VS Code version Nothing.
You want to switch later The dock's ... menu shows Turn On Input-Method Alignment or Turn Off Input-Method Alignment, whichever applies. Prompt Dock: Terminal Appearance... has the same switch.
You run Restore Your previous Modern UI value is put back, if Prompt Dock changed it.

Change these with Prompt Dock: Terminal Appearance..., or turn everything off with Prompt Dock: Restore Original Terminal Appearance. Run the restore command before uninstalling if you want the colour settings removed as well; VS Code does not let extensions clean up user settings when they are uninstalled.

Keyboard shortcuts

Action macOS Windows, Linux
Quick Run Cmd+Alt+R Ctrl+Alt+R
Run selection or line in terminal Cmd+Alt+Enter Ctrl+Alt+Enter
Rerun last command Cmd+Alt+L Ctrl+Alt+L

Inside the dock: / focuses search, 1 2 3 switch tabs, arrow keys or j k move between rows, Enter runs the focused row, Delete removes a history entry. A single click never runs a command; use the play button, Enter, or double-click.

Requirements

  • VS Code 1.93 or later.
  • Exit codes, history and session state need terminal shell integration, which VS Code enables by default for bash, zsh, fish, PowerShell and Git Bash. Running commands works without it.

Security

  • No runtime dependencies and no network access.
  • The webview uses a strict Content Security Policy (default-src 'none', nonce-gated scripts) and escapes all text it renders.
  • The webview can only trigger this extension's own commands; it has no direct access to the VS Code API.
  • History is stored in VS Code workspace storage on your machine. User-level commands are stored in global storage. Nothing leaves the machine.
  • Shell scripts treat repository content as untrusted: branch, folder and virtualenv names are escaped before they reach the bash prompt, so a crafted name cannot run code.
  • Temporary and cache files are never placed in a shared /tmp. They live in private, user-owned directories, are opened exclusively where it matters, and cache values are accepted only in their exact expected form.
  • Commands that carry a credential (passwords, tokens, API keys, authorization headers, URLs with a password) are neither recorded in history nor offered as suggestions, and the dock, the status bar and completion notices show a placeholder in their place. The suggestion data file is readable by your user only.
  • A command is never run in a terminal that is busy without asking first: VS Code stops the running command when a new one is sent to its terminal.

Development

Command Purpose
npm install Installs the TypeScript compiler and type definitions (development only).
npm run build Compiles the extension host and webview into dist/.
npm run watch Recompiles on change. Press F5 in VS Code to start an Extension Development Host.
npm run typecheck Strict type check of both projects.
npm test Runs the extension tests (Node.js test runner), the zsh highlighter and suggestion tests, and the bash prompt security tests.
npm run icon Re-renders media/icon.png from code.
npm run package Builds and writes prompt-dock-<version>.vsix.

Project layout:

Path Contents
src/extension.ts Activation, command registration, message handling.
src/core/ Session tracking, history, discovery, variables, runner, profiles, status bar, terminal appearance.
media/shell/ zsh startup wrapper, the zsh and bash prompts, the zsh command highlighter and inline suggestions.
src/ui/ Webview view provider and Content Security Policy.
src/webview/ Dock UI (plain TypeScript, no framework) and icons.
media/dock.css Dock styles, built on VS Code theme variables.
scripts/ Build, icon rendering and VSIX packaging.
docs/RESEARCH.md Research, analysis and design decisions (Vietnamese).

License

MIT

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