Automatically manage your VS Code tabs with intelligent closing and organization. Keep your workspace clean and focused by automatically closing excess tabs while protecting the ones you care about.
Features
✨ Smart Tab Management
Automatically closes excess tabs when you exceed a maximum limit
Protects dirty (unsaved) tabs from being closed
Preserves pinned tabs (never closes them)
🎯 Customizable Protection
Keep a configurable number of tabs on the left side protected
Perfect for keeping your most-used files accessible
⚡ Debounced Closing
Configurable delay before closing tabs
Prevents aggressive closing on rapid tab switches
Smooth, non-intrusive behavior
How It Works
You open tabs in VS Code as usual
When the number of open tabs exceeds numMaxTabs, the oldest tabs are automatically closed
Tabs within the first numLeftTabs positions are protected from automatic closing
Dirty (unsaved) tabs are always protected
The closing action is debounced by delayMs to avoid aggressive behavior
Extension Settings
This extension contributes the following settings:
auto-tab-closer.numLeftTabs (default: 3)
Number of tabs to keep protected at the left side
auto-tab-closer.numMaxTabs (default: 10)
Maximum number of normal (non-pinned) tabs to keep open
When exceeded, the oldest tabs are automatically closed
auto-tab-closer.delayMs (default: 1000)
Delay in milliseconds before closing excess tabs after a tab change
Prevents rapid tab closures when switching between files