Tabs Studio Blog (organizing Visual Studio document tabs)

October 2, 2017

Grouping tabs by subject

Filed under: Uncategorized — Sergey Vlasov @ 2:01 pm

Automatic tab grouping is essential for efficient organization of document tabs in Visual Studio. Tabs Studio by default automatically groups tabs with different extensions and the same name:

Additionally, you can set up automatic coloring, sorting and grouping of tabs based on tab name, project or document path. For example, let’s explore different options to organize tabs with the word Client: ClientHouse.cs, ClientPayments.cs and BusinessClient.cs.

To color all client tabs with a slightly transparent green color, you can create a tab coloring rule with Tab name regex=Client and Background=<SolidColorBrush Color=”#7D8FBC8F”/>:

To position client tabs near each other, enable the Sorter add-in, delete the default Sort by tab name rule and add a new sorting rule with Rule type=TabName and Match regex=(?<M>Client). Checking the Create super group option will additionally visually separate the group with a margin (configured in the Tabs style):

Finally, if you want to group client tabs in one extended tab, Title grouping regex=(?<Name>Client)(?<Ext>.+)|(?<Name>(.*[/\\])?.+?)(?<Ext>\..+) will group ClientHouse.cs and ClientPayments.cs:

You can add BusinessClient.cs to this group as well, but it depends on how you want to display it. For example, the following variations are possible:

1. Set Title grouping regex=(?<Ext>.*)(?<Name>Client)(?<Ext>.+)|(?<Name> (.*[/\\])?.+?)(?<Ext>\..+)

2. Install and enable the ITransform add-in.

3. In ITransform add-in options set Interface regex=^(?<Prefix>.+)(?<Name>Client)(?<Ext>.+)$

4. In ITransform add-in options set Replacement regex to ${Prefix} or ${Prefix}${Ext} or ${Prefix}${Name}${Ext} corresponding to the variations listed above.

Blog at WordPress.com.