我如何真正重置Visual Studio窗口布局?

时间:2020-11-28 07:17:28

I had a plugin installed in Visual Studio 2008, and it created some extra dockable windows. I have uninstalled it, and I can't get rid of the windows it created - I close them, but they always come back. They're just empty windows now, since the plugin is no longer present, but nothing I've tried gets rid of them. I've tried:

我在Visual Studio 2008中安装了一个插件,它创建了一些额外的可停靠窗口。我已经卸载了它,我无法摆脱它创建的窗口 - 我关闭它们,但它们总是会回来。它们现在只是空窗口,因为插件不再存在,但我尝试过的任何东西都没有它们。我试过了:

  • Window -> Reset Window Layout
  • 窗口 - >重置窗口布局

  • Deleting the .suo files in my project directories
  • 删除项目目录中的.suo文件

  • Deleting the Visual Studio 9.0 folder in my Application Settings directory
  • 删除“应用程序设置”目录中的Visual Studio 9.0文件夹

Any ideas?

10 个解决方案

#1


140  

Have you tried this? In Visual Studio go to Tools > Import and Export Settings > Reset all settings

你试过这个吗?在Visual Studio中,转到“工具”>“导入和导出设置”>“重置所有设置”

Be sure you back up your settings before you do this. I made the mistake of trying this to fix an issue and didn't realize it would undo all my appearance settings and toolbars as well. Took a lot of time to get back to the way I like things.

确保在执行此操作之前备份设置。我犯了一个错误,试图修复一个问题,并没有意识到它会撤消我所有的外观设置和工具栏。花了很多时间回到我喜欢的方式。

#2


32  

Try devenv.exe /resetuserdata. I think it's more aggressive than the Tools > Import and Export options suggested.

尝试devenv.exe / resetuserdata。我认为它比建议的工具>导入和导出选项更具侵略性。

Also check Tools > Add In Manager and make sure there aren't any orphans there.

同时选中工具>添加管理器,确保没有任何孤儿。

#3


12  

How about running the following from command line,

如何从命令行运行以下命令,

Devenv.exe /ResetSettings

You could also save those settings in to a file, like so,

您也可以将这些设置保存到文件中,如下所示,

Devenv.exe /ResetSettings "C:\My Files\MySettings.vssettings"

The /ResetSettings switch, Restores Visual Studio default settings. Optionally resets the settings to the specified .vssettings file.

/ ResetSettings开关,恢复Visual Studio默认设置。 (可选)将设置重置为指定的.vssettings文件。

MSDN link

#4


8  

I had similar problem except that it happened without installing any plugin. I begin to get this dialog about source control every time I open the project + tons of windows popping up and floating which I had to close one by one.

我有类似的问题,除了它没有安装任何插件。每次打开项目时,我都会开始关于源代码控制的对话框+大量的窗口弹出并浮动,我不得不一个接一个地关闭。

我如何真正重置Visual Studio窗口布局?

Windows -> Rest Windows Layout, fixed it for me without any problems. It does bring the default setting which I don't mind at all :)

Windows - > Rest Windows Layout,为我修复它没有任何问题。它确实带来了我根本不介意的默认设置:)

#5


4  

Note: if you have vs2010 and vs2008 and you want to reset the 2008, you will need to specify in command line the whole path. like this:

注意:如果您有vs2010和vs2008并且要重置2008,则需要在命令行中指定整个路径。像这样:

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /resetsettings

If you don't specify the path (like devenv.exe /resetsettings), it will reset the latest version of Visual studio installed on your computer.

如果未指定路径(如devenv.exe / resetsettings),它将重置计算机上安装的Visual Studio的最新版本。

#6


4  

If you have an old backup copy of CurrentSettings.vssettings, you can try restoring it.

如果您有CurrentSettings.vssettings的旧备份副本,则可以尝试恢复它。

I had a completely corrupted Visual Studio layout. When I tried to enter debug, I was told that VS had become unstable. When I restarted, my window layout would then be totally screwed. I tried restoring the VS current user settings in the registry from a backup, but that didn't help. However, restoring CurrentSettings.vssettings seems to have cured it.

我有一个完全损坏的Visual Studio布局。当我试图进入调试时,我被告知VS已经变得不稳定了。当我重新启动时,我的窗口布局将完全拧紧。我尝试从备份中恢复注册表中的VS当前用户设置,但这没有帮助。但是,恢复CurrentSettings.vssettings似乎已经治愈了。

There seems to be a bunch of binary stuff in there and I can imagine it gets irretrievably corrupted sometimes.

在那里似乎有一堆二进制的东西,我可以想象它有时会无可挽回地被破坏。

#7


3  

I close them, but they always come back

我关闭它们,但它们总是回来

When you say "they always come back" do you mean "next time you restart Visual Studio" or "immediately"?

当你说“他们总是回来”你的意思是“下次你重新启动Visual Studio”或“立即”?

One quirk of Visual Studio (at least VS2005) is that settings aren't saved until you exit. That means that if VS crashes at all while you are using it, any layout changes you made will be lost. The way around this is to always gracefully exit when you have set up everything like you want it to be.

Visual Studio的一个怪癖(至少是VS2005)是在退出之前不会保存设置。这意味着如果VS在您使用它时完全崩溃,您所做的任何布局更改都将丢失。解决这个问题的方法是,当您设置了所需的一切时,始终优雅地退出。

Not sure if this will help your particular situation though.

不确定这是否会对您的特定情况有所帮助。

#8


2  

I tried most of the suggestions, and none of them worked. I didn't get a chance to try /resetuserdata. Finally I reinstalled the plugin and uninstalled it again, and the windows went away.

我尝试了大部分建议,但没有一个有效。我没有机会尝试/ resetuserdata。最后我重新安装了插件并再次卸载它,然后窗户就消失了。

#9


1  

If you want to reset your development environment of your visual studio, then you can use Import and Export setting wizard. see this for all steps:

如果要重置visual studio的开发环境,则可以使用“导入和导出”设置向导。查看所有步骤:

http://www.authorcode.com/forums/topic/how-to-reset-development-environment-settings-of-your-visual-studio/

#10


0  

If you've ever backed up your settings (Tools -> Import and Export Settings), you can restore the settings file to get back to a prior state. This is the only thing that I've found to work.

如果您曾经备份过设置(工具 - >导入和导出设置),则可以恢复设置文件以恢复到先前状态。这是我发现的唯一可行的方法。

#1


140  

Have you tried this? In Visual Studio go to Tools > Import and Export Settings > Reset all settings

你试过这个吗?在Visual Studio中,转到“工具”>“导入和导出设置”>“重置所有设置”

Be sure you back up your settings before you do this. I made the mistake of trying this to fix an issue and didn't realize it would undo all my appearance settings and toolbars as well. Took a lot of time to get back to the way I like things.

确保在执行此操作之前备份设置。我犯了一个错误,试图修复一个问题,并没有意识到它会撤消我所有的外观设置和工具栏。花了很多时间回到我喜欢的方式。

#2


32  

Try devenv.exe /resetuserdata. I think it's more aggressive than the Tools > Import and Export options suggested.

尝试devenv.exe / resetuserdata。我认为它比建议的工具>导入和导出选项更具侵略性。

Also check Tools > Add In Manager and make sure there aren't any orphans there.

同时选中工具>添加管理器,确保没有任何孤儿。

#3


12  

How about running the following from command line,

如何从命令行运行以下命令,

Devenv.exe /ResetSettings

You could also save those settings in to a file, like so,

您也可以将这些设置保存到文件中,如下所示,

Devenv.exe /ResetSettings "C:\My Files\MySettings.vssettings"

The /ResetSettings switch, Restores Visual Studio default settings. Optionally resets the settings to the specified .vssettings file.

/ ResetSettings开关,恢复Visual Studio默认设置。 (可选)将设置重置为指定的.vssettings文件。

MSDN link

#4


8  

I had similar problem except that it happened without installing any plugin. I begin to get this dialog about source control every time I open the project + tons of windows popping up and floating which I had to close one by one.

我有类似的问题,除了它没有安装任何插件。每次打开项目时,我都会开始关于源代码控制的对话框+大量的窗口弹出并浮动,我不得不一个接一个地关闭。

我如何真正重置Visual Studio窗口布局?

Windows -> Rest Windows Layout, fixed it for me without any problems. It does bring the default setting which I don't mind at all :)

Windows - > Rest Windows Layout,为我修复它没有任何问题。它确实带来了我根本不介意的默认设置:)

#5


4  

Note: if you have vs2010 and vs2008 and you want to reset the 2008, you will need to specify in command line the whole path. like this:

注意:如果您有vs2010和vs2008并且要重置2008,则需要在命令行中指定整个路径。像这样:

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe" /resetsettings

If you don't specify the path (like devenv.exe /resetsettings), it will reset the latest version of Visual studio installed on your computer.

如果未指定路径(如devenv.exe / resetsettings),它将重置计算机上安装的Visual Studio的最新版本。

#6


4  

If you have an old backup copy of CurrentSettings.vssettings, you can try restoring it.

如果您有CurrentSettings.vssettings的旧备份副本,则可以尝试恢复它。

I had a completely corrupted Visual Studio layout. When I tried to enter debug, I was told that VS had become unstable. When I restarted, my window layout would then be totally screwed. I tried restoring the VS current user settings in the registry from a backup, but that didn't help. However, restoring CurrentSettings.vssettings seems to have cured it.

我有一个完全损坏的Visual Studio布局。当我试图进入调试时,我被告知VS已经变得不稳定了。当我重新启动时,我的窗口布局将完全拧紧。我尝试从备份中恢复注册表中的VS当前用户设置,但这没有帮助。但是,恢复CurrentSettings.vssettings似乎已经治愈了。

There seems to be a bunch of binary stuff in there and I can imagine it gets irretrievably corrupted sometimes.

在那里似乎有一堆二进制的东西,我可以想象它有时会无可挽回地被破坏。

#7


3  

I close them, but they always come back

我关闭它们,但它们总是回来

When you say "they always come back" do you mean "next time you restart Visual Studio" or "immediately"?

当你说“他们总是回来”你的意思是“下次你重新启动Visual Studio”或“立即”?

One quirk of Visual Studio (at least VS2005) is that settings aren't saved until you exit. That means that if VS crashes at all while you are using it, any layout changes you made will be lost. The way around this is to always gracefully exit when you have set up everything like you want it to be.

Visual Studio的一个怪癖(至少是VS2005)是在退出之前不会保存设置。这意味着如果VS在您使用它时完全崩溃,您所做的任何布局更改都将丢失。解决这个问题的方法是,当您设置了所需的一切时,始终优雅地退出。

Not sure if this will help your particular situation though.

不确定这是否会对您的特定情况有所帮助。

#8


2  

I tried most of the suggestions, and none of them worked. I didn't get a chance to try /resetuserdata. Finally I reinstalled the plugin and uninstalled it again, and the windows went away.

我尝试了大部分建议,但没有一个有效。我没有机会尝试/ resetuserdata。最后我重新安装了插件并再次卸载它,然后窗户就消失了。

#9


1  

If you want to reset your development environment of your visual studio, then you can use Import and Export setting wizard. see this for all steps:

如果要重置visual studio的开发环境,则可以使用“导入和导出”设置向导。查看所有步骤:

http://www.authorcode.com/forums/topic/how-to-reset-development-environment-settings-of-your-visual-studio/

#10


0  

If you've ever backed up your settings (Tools -> Import and Export Settings), you can restore the settings file to get back to a prior state. This is the only thing that I've found to work.

如果您曾经备份过设置(工具 - >导入和导出设置),则可以恢复设置文件以恢复到先前状态。这是我发现的唯一可行的方法。