Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Quit text tabsNew to Visual Studio Code? Get it now.
Quit text tabs

Quit text tabs

hankei6km

|
499 installs
| (0) | Free
Quit text tabs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-ext-quit-text-tabs

VSCode extension to quit(close) text tabs.

Usage

  1. The terminal tab, the task tab and some editor(text) tabs in tab group(editor group).

    screenshot of "Bash" "package.json" "watch" and "extension.ts" tabs exists in the tag group

  2. Execute the View: Quit Text Tabs command from the command palette

  3. Editor tabs are closed

    screenshot of the "Bash" "watch" tabs exists in the tag group

Settings

quitTextTabs.viewtypes

Specify the viewType of additional tabs to close.

The default value is set to close the built-in markdown preview.

{
  "quitTextTabs.viewtypes": ["markdown\\.preview$"]
}

Please refer to the next section for information about viewType.

Tab Info

The View: View Active Tab Info command displays information about the active tab. (A new text tab is opened and the information is pasted into it)

built-in markdown preview(viewType is mainThreadWebview-markdown.preview):

{
  "tabType": "webview",
  "info": {
    "isActive": true,
    "label": "Preview test1.md",
    "input": {
      "viewType": "mainThreadWebview-markdown.preview"
    },
    "isDirty": false,
    "isPinned": false,
    "isPreview": false
  }
}

Note that the viewType is typically set only for tabs of type webview or custom. This extension also checks the viewType only for tabs of type webview or custom.

terminal(viewType is undefined):

{
  "tabType": "terminal",
  "info": {
    "isActive": true,
    "label": "bash",
    "input": {},
    "isDirty": false,
    "isPinned": false,
    "isPreview": false
  }
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft