visual-studio Visual Studio 2008 窗口布局烦恼

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9601/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-13 16:21:40  来源:igfitidea点击:

Visual Studio 2008 Window layout annoyance

visual-studio

提问by davewasthere

I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings.

我在使用 Visual Studio 2008 时遇到了一个奇怪的问题。每次我启动它时,解决方案资源管理器大约有 1 英寸宽。就像它不记得它的布局设置一样。

Every un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it's size will be reset to very-narrow (around an inch) when I load.

每个未停靠的窗口都在我放置它的位置。但是如果我停靠一个窗口,它的位置会被保存,但是当我加载时它的大小将被重置为非常窄(大约一英寸)。

I've never come across this before and it's pretty annoying. Any ideas?

我以前从未遇到过这种情况,这很烦人。有任何想法吗?

The things I've tried:

我尝试过的事情:

  • Saving, then reloading settings via Import/Export.
  • Resetting all environment settings via Import/Export.
  • Window -> Reset Window layout.
  • Comination of rebooting after changing the above.
  • Installed SP1. No improvement
  • 保存,然后通过导入/导出重新加载设置。
  • 通过导入/导出重置所有环境设置。
  • 窗口 -> 重置窗口布局。
  • 更改上述内容后重新启动。
  • 安装了 SP1。没提升

none of which changed the behaviour of docked windows. (Also, definitely no other instances running..)

这些都没有改变停靠窗口的行为。(此外,绝对没有其他实例在运行..)

I do run two monitors, but I've had this setup on three different workstations and this is the first time I've come across it.

我确实运行了两台显示器,但我已经在三个不同的工作站上进行了这种设置,这是我第一次遇到它。

回答by

I had the same problem. It turned out that if the VS window was non-maximized, it was really small. So after making the non-maximized wider, the problem disappeared.

我有同样的问题。事实证明,如果 VS 窗口没有最大化,它真的很小。所以在使非最大化更宽之后,问题就消失了。

回答by Ali Parr

I occasionally get this bug, and others related to layout/fonts/colouring etc. A little trick I've found is use the Tools -> Import and Export Settings, export your current settings once you've got everything setup as you like, then close and reopen Visual Studio and import. Hopefully that'll sort you out.

我偶尔会遇到这个错误,以及其他与布局/字体/颜色等相关的错误。我发现的一个小技巧是使用工具 -> 导入和导出设置,一旦你按照自己的喜好设置了所有内容,就可以导出当前设置,然后关闭并重新打开 Visual Studio 并导入。希望这能解决你的问题。

In 2005 there were some little bugs with viewing Project/Solution property panels when the Solution Explorer wasn't in its default position, docked on the left of the screen - I don't know if that's changed in VS2008, but you might want to put it back there and see.

在 2005 年,当解决方案资源管理器不在其默认位置(停靠在屏幕左侧)时,查看项目/解决方案属性面板时会出现一些小错误 - 我不知道这在 VS2008 中是否有所改变,但您可能想要把它放回去看看。

Now, when are we going to get decent MultiMonitor support?!

现在,我们什么时候才能获得像样的 MultiMonitor 支持?!

回答by jfs

Maybe you're closing Visual Studio while some other instance is still alive. The settings of the last instance that is closed is the one that will be applied.

也许您正在关闭 Visual Studio,而其他一些实例仍然存在。关闭的最后一个实例的设置是将应用的设置。