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

|
38 installs
| (1) | 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

  • Smart Tab Management - Automatically detects and closes inactive tabs

  • Customizable Timeout - Set idle time from 30 seconds to several hours

  • Pinned Tab Protection - Never closes pinned tabs

  • Visual Feedback - See idle tab count in status bar

##Quick Setup

1.Install the extension 2.The extension starts working automatically 3.Configure settings to match your workflow 4.Check status bar for idle tab count

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
}

Examples

Basic Configuration

Set idle timeout to 10 minutes:

{
  "closeIdleTabs.idleTimeout": 600,
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft