Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to clearly show the current TFS branch from Visual Studio?

We are moving to a process where multiple developers will be working on solutions in a couple of different TFS branches. Already there has been confusion where people open solutions from a branch different to what they intend. The MRU list in VS 2010 only shows the solution name, not branch name. It's also not clear once the solution is open unless people check Properties or mouse over the current tab.

Is there a VS option or extension where the current TFS branch is prominently shown in some way? Or even a solution based on what folders the solution has been opened from on the file system?

like image 814
Alex Angas Avatar asked Sep 05 '11 23:09

Alex Angas


People also ask

How do I create branches in TFS from Visual Studio?

Use the following procedure to create branches in TFS from Visual Studio. Connect to your Team Foundation Server (if you're not already) and open the team project you're working on. Go to the Source Control Explorer. Once the Source Control Explorer is loaded you will see a list of all the team projects that hopefully includes yours.

How to get the branch name in Visual Studio 2013?

The Git Source Control Provider displays the branch name in the Pending Changes tool window. The VSCommands extension adds the branch name to the Visual Studio 2013 title. Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question.

What is the use of branching in Visual Studio?

Branching: Branching is an important and powerful technique for creating a parallel set of versions of your files. Figure 1 shows a branch structure in a hierarchical view. Use the following procedure to create branches in TFS from Visual Studio.

How do I change the name of the Visual Studio window?

Install the Rename Visual Studio Window extension. Go to Tools → Options → Rename VS Window Title → Global rules, under Patterns → Solution in xxx mode, and add [gitBranchName] to the path. Update: They've changed the title of the extension to Customize Visual Studio Window Title Show activity on this post.


1 Answers

There is a very simple VS extension titled Customize Visual Studio Window Title. Once installed it will show the solution name plus the parent folder in the VS windows title bar instead of just the solution name.

For example:

TotallyAwesomeSolution becomes NewFeatureA\TotallyAwesomeSolution

like image 98
James Wulkan Avatar answered Sep 21 '22 06:09

James Wulkan