Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Close Idle TabsNew to Visual Studio Code? Get it now.
Close Idle Tabs

Close Idle Tabs

Close All Idle Tabs

| (0) | Free
Automatically close inactive and unmodified tabs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. The extension starts automatically when VS Code launches
  2. Unmodified, unpinned tabs will automatically close after the configured idle time
  3. Check the status bar (bottom right) for idle tab count
  4. 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
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft