Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Close Other TerminalsNew to Visual Studio Code? Get it now.
Close Other Terminals

Close Other Terminals

Preview

ArturoDent

|
67 installs
| (0) | Free
Close terminals other than current terminal.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Close other Terminals

This vscode extension adds a command to the editor tabs' context menu: Close other Terminals

Close other Terminals demo

Extension Commands

This extension contributes the following command:

  • close-other-terminals.close: Close other Terminals

You can select any number of terminals (with the Shift key), right-click on one of them, and any non-selected terminals will be closed.

You can also use the command Close other Terminals from the Command Palette. In that case, all terminals other than the currently active terminal will be closed.

And you can create a keybinding to run the command (in your keybindings.json) like this:

{
  "key": "alt+k",
  "command": "close-other-terminals.close",
  
  "when": "terminalFocus"   // omit this to have it work in an editor
  // see below to use terminalFocus when clause 
}

If you want that when clause, make sure to add close-other-terminals.close to the following setting:

Terminal > Integrated: Commands to Skip Shell

Known Issues

Release Notes

0.0.3 Made Command Palette command work.

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