How to Disable Start Page After Solution Close in Visual Studio 2017

安稳与你 提交于 2019-12-06 17:00:47

问题


In Visual Studio 2017, you can select Tools > Options > Environment > Startup > At startup: Show empty environment. This prevents the Start Page from displaying when you launch Visual Studio, and in previous versions it prevented the Start Page from appearing when closing a solution.

In Visual Studio 2017, though, it seems the designers chose to show the Start Page after closing a solution, even if the option was for an empty environment on startup.

Are there any creative ways to get around this until the Visual Studio team decides to provide a reasonable option?


回答1:


I came across this after running into the same thing. Here is a potential work around from the developer community page from Oleg Savelyev & Bill Menees answers. Work around later added on that page by Praveen Sethuraman.

Here's a workaround you can use to disable the Start Page from reopening after a solution closes.

The steps to follow are:

1.Close all instances of VS & Run Regedit

2.Select HKEY_LOCAL_MACHINE

3.File -> Load Hive…

4.Open %LOCALAPPDATA%\Microsoft\VisualStudio\15.0_\privateregistry.bin

5.Enter a name like “MyVSHive”

6.Navigate to HKEY_LOCAL_MACHINE\MyVSHive\Software\Microsoft\VisualStudio\15.0_\StartPage

7.Create a new dword with a non-zero value like so:

"DisableOpenOnCloseSolution"=dword:00000001

8.Select “MyVSHive” and then go to File->Unload Hive…

9.Restart VS

Now, on closing a solution, the Start Page will not autopen.

Please note that resetting your settings will cause this setting to be reset and you will have to run through these steps again.

Thanks,

Praveen [MSFT]

Worked for me. Copying over in case it helps someone else.




回答2:


I disliked this behavior so much that I added an "Auto-close Start Page" option to my free Menees VS Tools 2017 extension for VS 2017. It defaults to false (since I didn't want to change VS's default behavior for everyone using my extension), but I set it to true manually on all my VS installs.

I and others discussed this with Andrew Arnott from Microsoft on the MS Developer Community, but he didn't seem to care much. MS telemetry data says that those of us that don't want to see the Start Page are in the minority, so MS is just going to force it on us now. :-(




回答3:


Fixed in Visual Studio 2017 v.15.5, 4 December 2017:

https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes https://developercommunity.visualstudio.com/content/problem/20817/disabled-startpage-is-opened-when-project-is-close.html

Thank you for your feedback! We have fixed this issue and it's available in Visual Studio 15.5.

It's great that Microsoft listened to the request in developercommunity, but I think the requesters missed the main point:

The problem is not the 4 seconds that it takes to close an extra window, it's the break in the programmer's concentration while looking at and resisting unnecessary link-bait.




回答4:


Seems that this behavior is by design https://developercommunity.visualstudio.com/content/problem/20817/disabled-startpage-is-opened-when-project-is-close.html

One approach is to create own extension. See more https://social.msdn.microsoft.com/Forums/vstudio/en-US/4f59de7c-715e-4f42-93d4-5e13efd626e3/visual-studio-2017-disable-start-page?forum=visualstudiogeneral



来源:https://stackoverflow.com/questions/42701902/how-to-disable-start-page-after-solution-close-in-visual-studio-2017

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!