The Tab Deleter extension automatically closes unused tabs in Visual Studio Code after a specified period of inactivity. This helps keep your workspace clean and organized.
Features
Closes tabs that have been inactive for a user-defined amount of time.
Simple and easy to use.
Installation
Open Visual Studio Code.
Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing Ctrl + Shift + X.
Search for "Tab Deleter".
Click "Install" to add the extension to your editor.
Configuration
You can customize the time after which inactive tabs will be closed by modifying the extension's settings.
Change the Inactive Time
Open the Command Palette by pressing Ctrl + Shift + P.
Type Preferences: Open Settings (UI) and press Enter.
In the search bar, type Tab Deleter.
You will see an option labeled Tab Deleter Configuration.
Look for Time in milliseconds after which an inactive tab will be deleted and change the value to your desired time (default is 5000 milliseconds, or 5 seconds).
Alternatively, you can directly edit your settings.json file:
"tabDeleter.inactiveTime": 10000 // Sets the time to 10 seconds