Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop visual studio opening layout page everytime I refresh mvc web app

I'm using Visual Studio 2015.

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

This gets rather frustrating if you're trying to make "on-the-fly" changes to a specific view, press F5 to refresh and see your changes, then alt-tab back to visual studio, only for it to have auto-previewed the layout page again.

How do you turn this feature off?

like image 900
Sk93 Avatar asked May 24 '16 09:05

Sk93


1 Answers

In Visual Studio, you should disable the checkbox for 'Enable browser link'. enter image description here

like image 59
Br2 Avatar answered Oct 12 '22 02:10

Br2