Tabs Studio Blog (organizing Visual Studio document tabs)

September 17, 2012

Tabs Studio v3.0.1 released

Filed under: Releases — Sergey Vlasov @ 7:00 pm

Tabs Studio v3.0.1 released:

  • Added smart suggestions to the Tab Coloring Rule dialog.
  • Added the ability to customize tab foreground from the Tab Coloring Rule dialog.
  • Added the Drag rules to reorder label to the Presentation options page.
  • Simplified foreground customization from styles.
  • Created top level tab context menu selection for Marker highlighting colors.

Download link: Tabs Studio v3.0.1.

Marker menu palette

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 6:34 pm

Instead of a submenu, I’ve created a top level tab context menu selection for Marker highlighting colors:

Marker menu palette

Marker menu palette

It will be easier to mark tabs with different colors, but I’m a little worried that this menu item is now too eye catching. Please, let me know what do you think.

Tab text color customization

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 6:11 pm

There are 4 text elements in a tab: name, extension, name modification marker and extension modification marker. These elements are normally having the same color. Plus, in Visual Studio 2012, close tab button and open preview tab button are drawings also normally having the same color with the text elements. It is much easier to customize colors for all these elements in the new Tabs Studio version.

All elements now by default bind to the tab foreground color. Just set tab foreground color in a style and you are done:

<Style TargetType="TabsStudio:Tab" BasedOn="{StaticResource DefaultTabStyle}">
      <Setter Property="Foreground" Value="Red"/>
</Style>

As always, you can change the color for a specific element too. Plus in VS 2012 you can now change it for the close tab button and the open preview tab button:

<Style TargetType="TabsStudio:CloseTabButton" BasedOn="{StaticResource DefaultCloseTabButtonStyle}">
      <Setter Property="Foreground" Value="Blue"/>
</Style>

And now you can set tab foreground colors simply in the Tab Coloring Rule dialog depending on tab properties state:

Tab background and foreground rule setup

Tab background and foreground rule setup

You can set only background, only foreground or both colors. In the tab coloring rules list, the visible color will be background, foreground and both colors correspondingly:

Visible colors in the tab coloring rules list

Visible colors in the tab coloring rules list

Smart suggestions for tab coloring

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 4:20 pm

I’ve added suggestions to the Tab Coloring Rule dialog. Each field in the dialog now has a corresponding samples button that lets you quickly define tab coloring rules:

Tab Coloring Rule dialog with suggestion buttons

Tab Coloring Rule dialog with suggestion buttons

Let me remind you, that you can start adding a tab coloring rule from two places. From the tab context menu Set color… command and from the Tabs Studio Presentation options page. In the first case the suggestions will be tailored for the tab you selected to color and in the second case all open tabs appear in the suggestions.

For example, Project name regex suggestions for the selected tab contain tab’s project:

Project name regex suggestions for the selected tab

Project name regex suggestions for the selected tab

Selecting the exact match sets the regex to ^WpfApplication1$ and selecting the Contains option sets the regex to WpfApplication1. While you rarely have other projects containing selected project name, it shows how easily you can set the regex for example to Wpf and have a distinct color for all your WPF projects.

If you opened the dialog from Tabs Studio options, all project names from all open tabs appear in the suggestions. The names are alphabetically sorted and the first name has the prebuild regex for the exact match:

Project name regex suggestions for all tabs

Project name regex suggestions for all tabs

I should clarify that while suggestions are different for one tab and all tabs, the rule created works exactly the same. All that matter is actual text in a regex filed.

Tab extensions regex suggestions show extensions from the selected tab or from all tabs:

Tab extensions regex suggestions

Tab extensions regex suggestions

Coloring by file extension can also be done using Document paths regex, but only with the tab extensions regex you can target tabs like [Design]. Selecting an extension suggestion creates a regex like \.vb \[Design]\$. All special regex characters are automatically escaped (it works for all regex fields). \$ forces exact match on extension end.

Tab name regex suggestions work like Project name regex suggestions and Document paths regex suggestions work like Tab extensions regex suggestions.

Custom conditions suggestions show most common currently available tab properties (with current values in one tab mode):

Custom conditions suggestions

Custom conditions suggestions

The list of suggestions is filtered depending on what version of Visual Studio you are running, active Tabs Studio add-ins and whether you have one or more tab groups open. Selecting a suggestion adds a condition like <ConditionX IsTabSelected=”True”/>. It is a shortened form that I use only for this text edit control. The normal form of a WPF MultiDataTrigger condition (that I restore on dialog save) is this:

<Condition Binding="{Binding Path=IsTabSelected, RelativeSource={RelativeSource Self}}" Value="True"/>

Finally, Background suggestions let you select a template for a gradient or solid color brush:

Background suggestions

Background suggestions

September 12, 2012

Tabs Studio v3.0.0 released

Filed under: Releases — Sergey Vlasov @ 5:23 pm

Tabs Studio v3.0.0 released:

  • Added support for Visual Studio 2012 color themes.
  • Implemented the right position for the preview tab in Visual Studio 2012.
  • Removed the Tabs Studio restart after saving Add-in Manager settings if the list of startup add-ins has not been changed.
  • Changed the Tabs Studio logo.

Download link: Tabs Studio v3.0.0.

The right position for the preview tab

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 5:05 pm

I’ve updated tabs layout algorithms in Tabs Studio to keep the preview tab in the last and right aligned position. For the horizontal tabs layout, the preview tab is now always in the right corner and on the last row with normal tabs, if there is space, or below them:

The preview tab on the last row

The preview tab on the last row

If you use vertical tabs in Visual Studio 2012, the preview tab is now always at the bottom of normal tabs and to the right:

The preview tab at the bottom of vertical tabs in Visual Studio 2012

The preview tab at the bottom of vertical tabs in Visual Studio 2012

Visual Studio 2012 color themes support

Filed under: Uncategorized — Tags: , — Sergey Vlasov @ 4:31 pm

With the recent release of Visual Studio 2012 Color Theme Editor, in addition to the light and dark themes, you can now select from 5 more themes and even choose your own colors:

Theme selection in Visual Studio 2012

Theme selection in Visual Studio 2012

I’ve updated Tabs Studio to support custom Visual Studio 2012 colors. Instead of two hardcoded light and dark styles, Tabs Studio now uses a single VS 2012 styles collection with direct binding to current VS 2012 shell colors. Each change in Visual Studio 2012 tab colors is now immediately reflected in Tabs Studio tab colors. For example, this is how Tabs Studio looks after selecting the blue theme:

Visual Studio 2012 blue theme

Visual Studio 2012 blue theme

Blog at WordPress.com.