VS Code Tab Cleaner is a powerful VS Code extension designed to streamline your development workflow by automatically managing and cleaning up your open tabs.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
VS Code Tab Cleaner is a powerful VS Code extension designed to streamline your development workflow by automatically managing and cleaning up your open tabs.
Whether you're dealing with files that have been moved or deleted, empty unsaved tabs, or even multiple unsaved documents, this extension helps you maintain a tidy and efficient workspace.
Key Features
List Missing Files:
Quickly scan and list all open tabs that reference files no longer available on your system.
Close Missing File Tabs:
Automatically close tabs linked to missing files, so you don’t waste time searching for files that no longer exist.
Close Empty Tabs:
Detect and close empty (or whitespace-only) unsaved tabs, keeping your editor clutter-free.
Combine Unsaved Untitled Tabs:
Merge multiple unsaved (untitled) tabs into one combined document. Each section displays the original untitled tab’s name and its creation timestamp for easy reference.
Auto Cleanup Tabs:
The ultimate one-command solution! Auto Cleanup first combines unsaved untitled tabs (with creation dates) and then cleans up missing and empty tabs in one go, giving you a pristine workspace with a single command.
Why Choose VS Code Tab Cleaner?
Boost Productivity: Spend less time managing tabs and more time coding.
Streamline Your Workspace: Automatically clean up unused, empty, or missing file tabs.
Enhance Focus: Reduce visual clutter and distractions in your development environment.
Optimized: Perfect for developers looking for a hassle-free tab management solution in VS Code.
Usage
Open the Command Palette:
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS).
Available Commands:
List Missing Files:
Type and select "VS Code Tab Cleaner: List Missing Files" to view all tabs referencing non-existent files.
Close Missing Files:
Type and select "VS Code Tab Cleaner: Close Missing Files" to automatically close tabs with missing files.
Close Empty Tabs:
Type and select "VS Code Tab Cleaner: Close Empty Tabs" to remove empty or whitespace-only tabs.
Combine Unsaved Untitled Tabs:
Type and select "VS Code Tab Cleaner: Combine Unsaved Untitled Tabs" to merge multiple unsaved tabs into one, with each section labeled with its creation date.
Auto Cleanup Tabs:
Type and select "VS Code Tab Cleaner: Auto Cleanup Tabs" to run all cleanup tasks in one command—combining unsaved tabs and closing missing and empty tabs.
Manually:
Download the .vsix file from the repository and install it in VS Code by selecting Extensions → ... → Install from VSIX....
Get Started Today!
Transform your VS Code experience with VS Code Tab Cleaner and enjoy a cleaner, more organized development environment. Say goodbye to cluttered tabs and hello to efficiency!