Enhance your tab management in Visual Studio Code with Tabs In Focus! 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, Tabs In Focus 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, Tabs In Focus 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 Tabs In Focus.
How It Works
Upon a content modification in any tab, the extension triggers the tabs-in-focus.moveTab command.
Tabs In Focus 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
tabs-in-focus.moveLeft
Type: Boolean
Default: true
Description: 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).
tabs-in-focus.fixedTabs
Type: Integer
Default: 5
Range: 1-9
Description: Specifies the number of tabs that should always remain fixed either at the start or end of the tab list. This depends on the moveLeft value. Tabs within this fixed group will not be automatically moved, even if their content is modified.
tabs-in-focus.debounceDelay
Type: Number
Default: 300
Range: 0 - 5000
Description: The delay in milliseconds between checking for tab content changes and calling the tabs-in-focus.moveTab command. It ensures that frequent content changes do not trigger excessive tab movement, improving the user experience. Set to 0 to disable this.
tabs-in-focus.reactionEvent
Type: String
Default: onedit
Options: onedit, onfocus, onsave, onopen, none
Description: 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.
Installation
Open Visual Studio Code and Navigate to Extensions.
Search for "Tabs In Focus".
Click install and enjoy enhanced tab management!
Or, launch VS Code Quick Open (Ctrl+P), paste ext install tabs-in-focus, 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.