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

橙三吉。 提交于 2019-12-04 22:35:30

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.

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. :-(

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.

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