Visual Studio 2017 年解决方案关闭后如何禁用起始页

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

在 Visual Studio 2017 中,您可以 select 工具 > 选项 > 环境 > 启动 > 启动时:显示空环境。这会阻止在您启动时显示起始页 Visual Studio,并且在以前的版本中它会阻止在关闭解决方案时显示起始页。

在 Visual Studio 2017 年,似乎 the designers chose to show the Start Page 在关闭解决方案后,即使该选项是针对启动时的空环境。

在 Visual Studio 团队决定提供合理的选择之前,是否有任何创造性的方法来解决这个问题?

似乎此行为是设计使然 https://developercommunity.visualstudio.com/content/problem/20817/disabled-startpage-is-opened-when-project-is-close.html

一种方法是创建自己的扩展。查看更多 https://social.msdn.microsoft.com/Forums/vstudio/en-US/4f59de7c-715e-4f42-93d4-5e13efd626e3/visual-studio-2017-disable-start-page?forum=visualstudiogeneral

我非常不喜欢这种行为,所以我在 VS 2017 的免费 Menees VS Tools 2017 扩展中添加了一个 "Auto-close Start Page" 选项。它默认为 false(因为我不想更改 VS 的默认行为对于每个使用我的扩展的人),但我在我所有的 VS 安装中手动将其设置为 true。

我和其他人在 MS Developer Community 上与 Microsoft 的 Andrew Arnott 讨论了这个问题,但他似乎不太在意。 MS 遥测数据表明,我们当中不想看到起始页的人占少数,因此 MS 现在只是将其强加给我们。 :-(

我在 运行 遇到同样的事情后遇到了这个问题。这是 Oleg Savelyev 和 Bill Menees 回答的来自开发者社区 page 的潜在解决方法。解决方法后来由 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.0_\privateregistry.bin

5.Enter a name like “MyVSHive”

6.Navigate to HKEY_LOCAL_MACHINE\MyVSHive\Software\Microsoft\VisualStudio.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]

对我有用。复制过来以防对别人有帮助。

已在 Visual Studio 2017 v.15.5 中修复,2017 年 12 月 4 日:

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.

Microsoft 在 developercommunity 中听取了请求,这很好,但我认为请求者错过了要点:

问题不在于关闭额外的 window 所需的 4 秒,而是程序员在查看和抵制不必要的 link-诱饵时的注意力中断。