Close Idle Tabs
Automatically closes inactive and unmodified tabs to keep your workspace clean.
Features
- 🔍 Automatic idle detection - Tracks tab activity
- ⏰ Configurable timeout - Set your preferred idle time (default: 15 minutes)
- 📌 Pinned tab protection - Never closes pinned tabs
- 🎯 File pattern ignore - Whitelist important files
- 💾 Close on save - Optional immediate closure after saving
- 📊 Status bar integration - See idle tab count at a glance
Usage
- The extension starts automatically when VS Code launches
- Unmodified, unpinned tabs will automatically close after the configured idle time
- Check the status bar (bottom right) for idle tab count
- Use commands for manual control
Commands
Open Command Palette (Ctrl+Shift+P ) and run:
Close Idle Tabs: Close Idle Tabs Now - Manually close all idle tabs immediately
Close Idle Tabs: Show Idle Tabs Stats - View detailed tab statistics
Extension Settings
Configure these in your VS Code settings:
{
"closeIdleTabs.idleTimeout": 900,
"closeIdleTabs.checkOnlyUnmodified": true,
"closeIdleTabs.keepPinnedTabs": true,
"closeIdleTabs.ignoredFilePatterns": [],
"closeIdleTabs.closeOnSave": false,
"closeIdleTabs.enableStatusBar": true
}
| |