Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the title bar text of Visual Studio

We work on several different branches of the same code, and when working on two branches at once, it can become confusing and time wasting.

Presently, the VS title bar has the text <solution-name> - Visual Studio.

Is it possible for me to write an extension that will make that text <solution-name>: <branch-name> - <Visual Studio>?

like image 364
ProfK Avatar asked Feb 23 '09 10:02

ProfK


People also ask

How do I change the title in Visual Studio?

Added option in Tools > Options > Rename VS Window Title to specify the minimum number of instances of Visual Studio above which the extension will modify the window title (default: 2).

How do I change the color of the title bar in Visual Studio?

I did some tests, you can try to set Common elements > Main Window > Caption > Active/Inactive > Background option to change the title bar colors. And set Common elements > Tool Window > Caption > Active/Inactive > Background option to change the title bar colors of docked/undocked windows.

How do you change a title in Visual Basic?

Right-click Form1. vb in the Solution Explorer window (the window above the Properties window). Choose Rename from the context menu that appears. Change the text from Form1.

How do I customize the title bar in Windows 10?

Click the Cortana button on the taskbar and enter Control Panel in the search box to open it. Then click Display to open the options shown below. There you can customize the font sizes in Windows. Click the drop-down menu on the left and select Title bars.


1 Answers

I just created a small Visual Studio extension that can help: http://visualstudiogallery.msdn.microsoft.com/f3f23845-5b1e-4811-882f-60b7181fa6d6

This small extension will detect whenever two instances of Visual Studio are running and change the window title of Visual Studio to include the parent folder name of the solution. It will therefore change SolutionFolder - Microsoft Visual Studio into SolutionFolderParent\SolutionFolder - Microsoft Visual Studio.

This is particularly useful when branching a solution: it becomes possible to easily identify which branch you are working on, in the case where both would have the same solution name.

Official page here: http://erwinmayer.com/labs/visual-studio-2010-extension-rename-visual-studio-window-title/

like image 65
Erwin Mayer Avatar answered Sep 22 '22 09:09

Erwin Mayer