Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual Studio solution titles showing as localhost_12312 etc

For various reasons we are using VS2013 as our preferred IDE to edit php and html pages.

These are websites running on WAMP, so VS2013 is just IDE for us, nothing else. These aren't web solutions or web projects. There's no IIS or ASP. We just do "open website" and just point to the local folder containing the website files.

If we have multiple instances open it's hard to tell them apart as VS2013 captions the windows as localhost_12312, localhost_45645 etc

Here's what it looks like in the taskbar:

enter image description here

Tried installing Erwin Mayer's addon mentioned here but that just results in the title bar showing as:

localhost_12312\localhost_12312 - Microsoft Visual Studio *

Is there a fix for this annoying niggle?

like image 299
hawbsl Avatar asked Mar 27 '15 10:03

hawbsl


People also ask

How do I Turn Off source analysis in Visual Studio?

To open this page, right-click the project node in Solution Explorer and select Properties. Select the Code Analysis tab. To disable source analysis at build time, uncheck the Run on build option. To disable live source analysis, uncheck the Run on live analysis option.

Is it possible to connect to localhost from VS Code?

As a workaround, vscode.env.asExternalUri can be used allow the webview to connect to spawned localhost web servers from VS Code. However, this is currently blocked for the Codespaces browser-based editor (only) by MicrosoftDocs/vscodespaces#11.

How do I delete containers in Visual Studio Code?

You can delete containers by selecting the Remote Explorer, right-click on the container you want to remove, and select Remove Container. However, this does not clean up any images you may have downloaded, which can clutter up your system. Open a local window in VS Code ( File > New Window ).

How do I suppress code analysis errors in Visual Studio 2019?

If you want to clear analyzer errors from the Error List, you can suppress all the current violations by selecting Analyze > Run Code Analysis and Suppress Active Issues on the menu bar. For more information, see Suppress violations. Starting in Visual Studio 2019 version 16.3, you can turn off source code analysis or execute it on demand.


1 Answers

If the Mentioned method in my comment doesn't support your question, you can use the following vs extension: https://visualstudiogallery.msdn.microsoft.com/2e8ebfe4-023f-4c4d-9b7a-d05bbc5cb239

Use the Expression language operators and their precedence section to help you build the required behavior.

For example you can do something like this:

> if (sln_filename) {
    sln_filename + " - Visual Studio " + vs_version + " " + vs_edition
} else {
    // do whatever you want if there is no solution open
    "Visual Studio " + vs_version + " " + vs_edition
}

I hope it supports your question

like image 147
DeJaVo Avatar answered Sep 28 '22 07:09

DeJaVo