Terminal in New WindowOpen a VS Code terminal in a new VS Code window (native floating terminal) via:
With a configurable default command executed on launch (e.g. Usage
Settings (
|
| 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
}