I prefer publishing my Optimizely CMS applications to a local IIS site. It gives me a better idea of a final application published to a DXP instance, and has other benefits. Optimizely CMS runs well directly from Visual Studio, though. Doing so makes it easier to debug startup tasks and initialization modules. However, when running applications with Visual Studio debugging, a new browser window opens on start. When you stop debugging, Visual Studio closes those windows. This behaviour can become bothersome when you want to leave a page or content open. This can be changed with a couple simple steps. Additionally, if you often browse to a specific page when debugging, you can set a preferred URL to open on start.
Check out my article Stop Creating New Windows & Tabs When Debugging, and leave a comment below to share additional helpful information.