Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Terminal in New WindowNew to Visual Studio Code? Get it now.
Terminal in New Window

Terminal in New Window

Axtra

|
1 install
| (0) | Free
Open a VS Code terminal in a new VS Code window via the status bar or command palette, with a configurable default command.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Terminal in New Window

Open a VS Code terminal in a new VS Code window (native floating terminal) via:

  • a status bar button at the bottom: $(terminal) New Window Terminal
  • the command palette: Terminal: Open terminal in a new window

With a configurable default command executed on launch (e.g. npm run dev).

Usage

  1. Click New Window Terminal at the bottom right, or Ctrl+Shift+P → Open terminal in a new window.
  2. VS Code creates a terminal and moves it into a new window, cd into the workspace folder, and runs your default command.

Requires VS Code 1.85+ for floating terminal windows (workbench.action.terminal.moveIntoNewWindow). On older versions the terminal opens in the current window instead.

Settings (termInNewWin.*)

Setting Default Description
defaultCommand "" Command executed on launch (e.g. npm run dev). Empty = interactive shell.
workingDirectory ${workspaceFolder} Startup folder. Supports ${workspaceFolder}, ${home}, ~.
terminalName Terminal (new window) Name of the created VS Code terminal.
dynamicTitle true Ghostty-style title: tab follows the running command, back to folder when idle.
titleIdleFormat ${folder} — ${shell} Idle format (${folder}, ${shell}, ${cwd}).
titleRunningFormat ${process} — ${folder} Running format (${command}, ${process}, ${folder}, ${cwd}, ${shell}).
showInStatusBar true Show the bottom button.
statusBarText $(terminal) New Window Terminal Button text ($(...) icons supported).
statusBarTooltip ... Button tooltip.

settings.json example:

{
  "termInNewWin.defaultCommand": "npm run dev",
  "termInNewWin.terminalName": "dev",
  "termInNewWin.showInStatusBar": true
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft