Stop visual studio page opening page every time I update mvc web application

I am using Visual Studio 2015.

If you create a new MVC project with all the basic principles, it gives you (home controller, account controller, etc.), then press F5 to start it, visual studio displays the page "_layout.cshtml" in the preview window.

This gets pretty annoying if you are trying to make changes on the fly to a specific view, press F5 to refresh and see your changes, then alt-tab back to visual studio, just to automatically view the layout page.

How to disable this feature?

+6
source share
3 answers

I was able to reproduce the new installation. For me, the intruder was an extension of Web Foundation. Try disconnecting and restarting VS. In addition, this only happens when you open the Edge developer tools. Did not see this with Firefox or Chrome.

+1
source

In Visual Studio, you must disable the "Enable browser link" checkbox. enter image description here

+1
source

I cannot replicate your exact problem, but the following should disable the preview tab:

  • Enter "preview" in "Quick Launch"
  • Choose "Environment β†’ Tabs and Windows"
  • Disable "Allow opening new files in the preview tab"

enter image description here

0
source

All Articles