Tabs Studio Blog (organizing Visual Studio document tabs)

September 17, 2012

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

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

August 16, 2012

Visual Studio 2012 RTM support

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 1:22 pm

Visual Studio 2012 is now available to MSDN subscribers:

Visual Studio 2012 splash screen

Visual Studio 2012 splash screen

I don’t see any changes in default Visual Studio tabs behavior comparing to Release Candidate, but they slightly changed packages registration and I had to update the Tabs Studio installer. With the update, Tabs Studio is now compatible with VS 2012 RTM as well:

Tabs Studio in Visual Studio 2012 RTM

Tabs Studio in Visual Studio 2012 RTM

Download link: Tabs Studio v2.8.1.

June 11, 2012

Visual Studio 2012 RC support

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 10:18 am

Visual Studio 2012 RC was released about two weeks ago:

Visual Studio 2012 RC splash screen

Visual Studio 2012 RC splash screen

Tab colors were changed, most noticeable are the blue color for the selected tab the purple color for the preview tab. Tabs Studio style was updated to reflect these changes:

Selected tab in Visual Studio 2012 RC

Selected tab in Visual Studio 2012 RC

For those working with tab groups, in VS 2012 Tabs Studio now supports the Float all command to float a whole tab group out of the main window and the Move all to next/previous tab group commands:

New tab context menu commands in Visual Studio 2012

New tab context menu commands in Visual Studio 2012


Floating tab group in Visual Studio 2012

Floating tab group in Visual Studio 2012

Download link: Tabs Studio v2.8.0.

May 16, 2012

Short Tabs Priority

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 9:32 am

The tabs layout algorithm in Tabs Studio tries to minimize number of rows, distribute tabs evenly between rows and minimize tab movements between rows as you add or remove tabs. The last goal to minimize tab movements between rows sometimes creates quite wide tabs:

Extra wide tabs in the top row

Extra wide tabs in the top row

For the new release I’ve reduced the priority of no tab movement and for the same tabs the new look is this:

More priority for shorter tabs in the new release

More priority for shorter tabs in the new release

Plus I’ve added the new ShortTabsPriority property that you can customize from a custom style. It is a double value. Value of 1 is old behavior. Default in the new release is 3. Value of 10 is a high priority and 100 is a very high priority. Following is an example that you can use to customize the tabs width/movement balance:

<Style TargetType="TabsStudio:Tabs" BasedOn="{StaticResource DefaultTabsStyle}">
  <Setter Property="ShortTabsPriority" Value="10"/>
</Style>
High priority of short tabs

High priority of short tabs

Download link: Tabs Studio v2.7.5.

April 23, 2012

SQL Server 2012 Management Studio support

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 10:54 pm

SQL Server 2012 was released about a month ago:

SQL Server 2012 Management Studio splash screen

SQL Server 2012 Management Studio splash screen

The new management studio uses Visual Studio 2010 shell. Extensibility for SSMS 2012 is still not officially supported by Microsoft, but luckily Visual Studio add-ins work just fine in it. Unfortunately, Visual Studio extensions don’t work as ssms.exe contains white list of allowed package GUIDs. I had to change my Visual Studio 2010 helper extension to helper add-in and after that Tabs Studio works without problems in the new IDE:

Tabs Studio in SSMS 2012

Tabs Studio in SSMS 2012

Download link: Tabs Studio v2.7.0.

March 21, 2012

Preview tab support in Visual Studio 11

Filed under: Uncategorized — Tags: — Sergey Vlasov @ 12:01 pm

The preview tab in Visual Studio 11 is a separate reusable tab displayed in the right corner of the document tabs well. In Tabs Studio the preview tab is opened in the last tab position:

The preview tab in Tabs Studio

The preview tab in Tabs Studio

All relevant add-ins like Sorter, AutoOpener, PriorityGroup and OpenNext were updated to ignore the preview tab and don’t move it from the last position. I’ve added the new IsPreviewTab property to style the preview tab and show the, also new, Open button that transforms the preview tab into the regular tab.

In the Tab Coloring Rule dialog you can now access the preview tab property similar to the other properties like selected tab and previously selected tab. Most of the time, I think, you will set it to False to keep the default preview tab look. (Note, that I’ve also changed, sometimes confusing, three state checkboxes to descriptive comboboxes):

Preview tab property setup in the Tab Coloring Rule dialog

Preview tab property setup in the Tab Coloring Rule dialog

If you are interested in custom VS 11 styling, see the new light and dark default style definitions. Next I plan to add support for floating tab groups in Visual Studio 11.

Download link: Tabs Studio v2.6.3.

« Newer PostsOlder Posts »

Blog at WordPress.com.