-
Automatically closes tabs that have not been used for a defined length of time — 12 hours, by default.
-
Only closes tabs if the group contains more than a defined number of tabs — 5, by default.
-
Doesn't close tabs that have changes, tabs that are pinned, and the active tab of each group.
The age of the opened tabs is persisted when the workspace is closed, and resumes incrementing when the workspace is reopened.
In addition to automatically closing unused tabs, the extension provides the following commands.
Close all tabs except the 5 (by default) most recently used ones, in each group. (It also doesn't close tabs with changes, pinned tabs, and the active one.)
List the tabs that have been automatically closed since the workspace was opened. Use it to adjust the autoclosetabs.numberOfTabsInGroup
and autoclosetabs.tabAgeForAutomaticClosing
settings if you find that tabs are closed more/less often than you wish.
Can be one of two values:
everywhere-except-excluded
: the extension will automatically close unused tabs in all workspaces, except the ones present in theExcluded
list;nowhere-except-included
: the extension will automatically close unused tabs only in the workspaces present in theIncluded
list.
The default value is everywhere-except-excluded
.
Note: this way of activating tab auto-closing allows you to do it on a per project/workspace basis, without relying on a project's
.vscode/settings.json
file, as this file is often committed and shared with collaborators.
This setting is only used when
autoclosetabs.activation
is equal toeverywhere-except-excluded
.
List of workspaces in which the extension will not automatically close unused tabs.
To add a workspace to this list, use the command Auto Close Tabs: Deactivate automatic closing of unused tabs for this workspace
.
This setting is only used when
autoclosetabs.activation
is equal tonowhere-except-included
.
List of workspaces in which the extension will automatically close unused tabs.
To add a workspace to this list, use the command Auto Close Tabs: Activate automatic closing of unused tabs for this workspace
.
Unused tabs will be closed only if the number of tabs in the group is greater than this number; enter 0
to close all unused tabs.
The default value is 5
.
Number of hours after which an unused tab is automatically closed.
The default value is 12
.
Initial release of Auto Close Tabs.
- Improve display of automatically closed tabs.