vscode-ext-quit-text-tabs
VSCode extension to quit(close) text tabs.
Usage
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](https://github.com/hankei6km/vscode-ext-quit-text-tabs/raw/HEAD/images/screenshot-tabs.png)
Execute the View: Quit Text Tabs
command from the command palette
Editor tabs are closed
![screenshot of the "Bash" "watch" tabs exists in the tag group](https://github.com/hankei6km/vscode-ext-quit-text-tabs/raw/HEAD/images/screenshot-closed.png)
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
}
}