Visual Studio IDE how to build and view changes in browser without opening a new tab or window?

jerryh91

I'm following the tutorial on http://www.microsoftvirtualacademy.com/training-courses/introduction-to-asp-net-mvc. And whenever code change are made, the guy simply re-builds, and refreshes the browser tab to view any changes. It doesn't work with the setting I have within Visual Studios 2013. I need to re-build, and click Run again, which opens up a new tab in my browser.

Frank Thomas

The instructor is Running the application (Ctrl + F5) initially, rather than debugging it.

When a debugger is attached (eg you launch the application with F5 or by hitting the green play arrow), you have to stop debugging before you can rebuild, and when you debug again, or restart, the changed version will open in a new tab.

When you run an application without debugging however, you can rebuild at any time (Ctrl + Shift + B). a new browser tab/window is not launched, but the code in the IISExpress instance is updated, so when you refresh the browser, you see the changes.

Additionally, many changes to the application do not require a rebuild at all. for instance changing CSS, javascript, or other purely markup information. In those cases, you can just save and refresh. I do caution you however to only do this for tweaking CSS, as you may introduce problems in other parts of the code, and not notice them until much later. rebuilding is always a safe bet.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to stop Visual Studio 2017 v15.7.2 opening debugging session in a new browser window?

Submitting form without opening new window or tab

How can I get a new browser session when opening a new tab or window on Firefox/Chrome?

Opening a new browser tab

Is it possible to disable opening a new tab or window in browser using JavaScript?

Close modal dialog when opening link in new browser tab/window

Downloading a pdf without opening new tab or changing current tab view

Visual Studio Code open tab in new window

programmatically determine if the popup blocker is enabled in a browser without opening the new tab

Problem with opening new tab in a browser

Subprocess opening the file in a new Visual Studio Code tab

How to prevent mailto event from opening a new tab in browser

How to set title for pdf file opening in new tab (_blank) in browser

Visual Studio Code Opening in Browser

Keyboard shortcut for moving a code editor tab to a new window in Visual Studio

How to prevent Visual Studio Code from opening files in the current tab?

How to change URL in Selenium without opening new tab (python)?

How do I run a URL whithout opening the browser in Visual Studio?

How to make Google marker url open in a new browser window or tab?

How to open new window browser when user click close tab?

How to force the redirection to a new window or tab in a mobile phone browser?

Window.open opening blank new tab?

Error opening a new browser window using javascript

How to get string from 'window.getSelection' and how to fix opening new tab by using 'window.open'?

How to change the font size in the Properties window in Visual Studio IDE

Is there a keyboard shortcut for opening the Visual Studio tab dropdown?

How to download a PDF to a new tab/window without popup blocker?

JavaScript: How to open a link in a new tab without window.open()?

Visual Studio tab header color in the IDE