Smart Tabs for Visual Studio Code
Enhance your tab management in Visual Studio Code with Smart Tabs
! This extension automatically repositions tabs with modified content, making them easily accessible, especially when dealing with a multitude of open files.
Features
Intelligent Tab Movement: Once you modify content in a tab, Smart Tabs will automatically move it closer to the left or right edge of your tab list, depending on your preference.
Respect for Pinned Tabs: If you've pinned certain tabs to ensure they remain in specific positions, Smart Tabs will recognize this and ensure that these pinned tabs aren't disturbed by any automatic movements.
Configurable Fixed Tab Positions: You can specify a set number of tabs that always remain at the beginning or end of your tab list. These tabs will not be impacted by the automatic tab movement behavior of Smart Tabs.
How It Works
Upon a content modification in any tab, the extension triggers the smart-tabs.moveTab command.
Smart Tabs then checks your specified configurations to determine the desired behavior.
Before executing the move, it takes into account any pinned tabs and calculates the right position for the modified tab.
The tab is finally repositioned using the VS Code moveActiveEditor
command.
Configuration Options
smart-tabs.activeFirst
- Type: Boolean
- Default: false
Determines the direction of movement for the modified tab.
- If set to true, the modified tab will be moved towards the beginning (left side) of the tab list.
- If set to false, the tab will be moved towards the end (right side).
smart-tabs.fixedTabs
- Type: Integer
- Default:
5
- Range:
1
-9
Specifies the number of tabs that should always remain fixed either at the start or end of the tab list. This depends on the activeFirst
value. Tabs within this fixed group will not be automatically moved, even if their content is modified.
smart-tabs.debounceDelay
- Type:
Number
- Default:
300
- Range:
0
- 5000
The delay in milliseconds between checking for tab content changes and calling the smart-tabs.moveTab command. Set to 0 to disable this. It ensures that frequent content changes do not trigger excessive tab movement, improving the user experience. Set to 0 to disable this.
smart-tabs.reactionEvent
- Type: String
- Default:
onedit
- Options:
onedit
, onfocus
, onsave
, onopen
, none
.
Specifies the event that triggers the tab to move:
onedit
: The tab will move whenever its content is edited.
onfocus
: The tab will move whenever it gains focus.
onsave
: The tab will move whenever the content is saved.
onopen
: The tab will move when a new window is opened only.
none
: Disable extension.
This setting allows users to customize when they want tabs to be automatically repositioned based on their personal workflow and preference.
Installation
- Open Visual Studio Code and Navigate to Extensions.
- Search for
Valsorym.smart-tabs
.
- Click
install
and enjoy enhanced tab management!
Or, launch VS Code Quick Open (Ctrl+P), paste the ext install Valsorym.smart-tabs
, and press enter.
Feedback and Contribution
Your feedback is valuable! If you have any suggestions, issues, or would like to contribute, please raise an issue on our GitHub repository.