如何在 Visual Studio 2017 中关闭解决方案后禁用起始页 [英] How to Disable Start Page After Solution Close in Visual Studio 2017

查看:71
本文介绍了如何在 Visual Studio 2017 中关闭解决方案后禁用起始页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

在 Visual Studio 2017 中,似乎 设计人员选择在关闭解决方案后显示起始页,即使该选项是针对启动时的空环境.

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.

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

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

推荐答案

我在遇到同样的事情后遇到了这个问题.这是来自开发者社区的潜在解决方案 页面 来自 Oleg Savelyev &比尔·梅尼斯回答.Praveen Sethuraman 稍后在该页面上添加了变通方法.

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.

要遵循的步骤是:

1.关闭VS&的所有实例运行注册表

1.Close all instances of VS & Run Regedit

2.选择HKEY_LOCAL_MACHINE

2.Select HKEY_LOCAL_MACHINE

3.File -> 加载 Hive...

3.File -> Load Hive…

4.打开 %LOCALAPPDATA%\Microsoft\VisualStudio\15.0_\privateregistry.bin

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

5.输入一个名称,如MyVSHive"

5.Enter a name like "MyVSHive"

6.导航到 HKEY_LOCAL_MACHINE\MyVSHive\Software\Microsoft\VisualStudio\15.0_\StartPage

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

7.创建一个具有非零值的新双字,如下所示:

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

"DisableOpenOnCloseSolution"=dword:00000001

"DisableOpenOnCloseSolution"=dword:00000001

8. 选择MyVSHive",然后转到 File->Unload Hive...

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

9.重启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.

谢谢,

普拉文 [MSFT]

为我工作.复制过来以防对其他人有帮助.

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

这篇关于如何在 Visual Studio 2017 中关闭解决方案后禁用起始页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆