Daniel Schroeder

Sharing my tips and tricks to help other developers be more productive
posts - 17, comments - 9, trackbacks - 0

My Links

News

Twitter












Archives

Friendly visual studio solution names for working with multiple branches

If you have the latest version of the Visual Studio 2010 extension VSCommands you can give your solutions friendly names that display in the window’s title bar.  This is nice when you are working in different branches, so that you can differentiate which solution you are actually looking at.  I wrote the following regex to put the Branch Name after the Solution name, so for example if you have the client solution open in both Dev and Release, one will be called “Client.sln – Dev” and the other “Client.sln – Release”.

To use this, in Visual Studio go to Tools -> Options -> VSCommands 2010-> IDE Enhancements and then paste in the following (without the quotes):

Friendly Name: “{solutionName} - {branchName}”

Friendly Name – Solution Path Regex: ".*\\(?<branchName>.*)\\(?<solutionName>.*(?:.sln))"

    

Happy coding!

Print | posted on Friday, April 29, 2011 3:06 PM |

Feedback

Gravatar

# re: Friendly visual studio solution names for working with multiple branches

Great tip! Thanks!
5/1/2011 1:43 AM | Mark A.
Gravatar

# re: Friendly visual studio solution names for working with multiple branches

Perfect! Now I only have to upgrade to VS2010...
5/3/2011 9:18 AM | kk
Gravatar

# re: Friendly visual studio solution names for working with multiple branches

Thanks for the information, works a treat.
1/24/2012 5:08 AM | Mike Tinson
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: