Home Screenshots Download Order Blog* Support
User Guide Style Tab Grouping Add-ins

ITransform add-in

It is a common convention to have interface file names started with 'I' (like IService.cs) and implementation files named the same excluding the first 'I' (like Service.cs). Would be nice to have them on one tab. It is easy to group such files, the problem is how the result looks like. For example, a possible title grouping regex for this task is:

(?<Ext>I(?<Name>.+?)\.cs)|(?<Name>(.*[/\\])?.+?)(?<Ext>\..+)

It nicely groups two files as "Service .cs IService.cs", but when IService.cs is the single file in a tab it will be displayed as "ServiceIService.cs" (and IInterface1.cs will be displayed as "Interface1IInterface1.cs"):

Grouping class and interface tabs using only title grouping regex

The ITransform add-in improves interface tab name representation, transforming interface titles after grouping. With this add-in for the IService.cs and Service.cs pair a grouped tab will be "Service .cs Interface" and a single interface tab will remain "IService.cs":

Grouping class and interface tabs using title grouping regex and the ITransform add-in

ITransform still requires setting up the special interface grouping regex first. Add the following title grouping regex section:

I(?<Name>[A-Z].+?)\.(?<Ext>.+)

For example, if you use default title grouping settings, your combined title grouping regex will be:

I(?<Name>[A-Z].+?)\.(?<Ext>.+)|(?<Name>(.*[/\\])?.+?)(?<Ext>\..+)

ITransform also supports other prefixes and lets you customize how to display interface tabs:

ITransform Options

Interface regex should match only tabs with our prefixes. Replacement regex can be for example only ${Prefix} or include your custom text.

Return to Add-ins