views:

132

answers:

4

I have a solution where I'm repeating various class names within three different projects (a WCF service project, a unit testing project and a BL project). Also partial classes have been used to spread these classes across multiple files.

The net result is that I've got 5 different file names that are repeated across three different projects.

The namespaces of these projects make it clear the purpose of each however Visual studio displays only the filename on each tab when you are in tabbed document mode. This can be a little confusing when switching from file to file.

Is my only option here to rename the file to distinguish between my files or is there a way to persuade VS to show me on each tab which project the file belongs to?

+3  A: 

No there is no good way to change this behavior other than renaming the files.

You may be able to achieve this with a Plugin but it would require a lot of effort and I'm not 100% sure it can be done.

JaredPar
I have to agree. After posting this (SO is a very good way to force you to think something through completely) I decided that I would add "_Test" after my test project files and "_Service" after the service ones. It's so much easier to work with now. Thanks
Chris Simpson
+1  A: 

I can hover over tab names to get a full path of the file. Does this help you?

crizCraig
This is true and it does help a little but it's still slower than just clicking on the file I want.
Chris Simpson
+2  A: 

if You switching between open tabs using key stroke CTRL+TAB screen that appear will give you more information

adopilot
I just found this recently. Nice feature that is not advertised that well (like many in VS).
Maestro1024
Yes, this is a good point but in a similar vein to my reply to @crizCraig it's still quite slow. User-defined colouring of files in different projects would be a nice touch.
Chris Simpson
+2  A: 

Commercial Tabs Studio add-in for Visual Studio allows lots of tab customization. The latest version explicitly demonstrates how to add project name to tab and shows per-project tab coloring.

Sergey Vlasov