visual-studio 在 Visual Studio 2010 中使用多个监视器的最佳实践

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2931808/
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-10-22 12:03:20  来源:igfitidea点击:

Best Practices for Working with Multiple Monitors in Visual Studio 2010

visual-studiovisual-studio-2010

提问by CleverPatrick

Now that Visual Studio 2010 has support for multiple monitors, I am curious how other people have their environments arranged. I have yet to come up with an arrangement that I am really satisfied with.

既然 Visual Studio 2010 支持多显示器,我很好奇其他人如何安排他们的环境。我还没有想出一个我真正满意的安排。

The current best I have come up with for my 2 monitor system is to have all code windows detached. Then, on my primary monitor, I am able to have two code windows side by side (using the Windows 7 keyboard shortcuts WinKey+LeftArrow and WinKey+RightArrow.) On my secondary monitor I put the rest of the IDE with all of the tool windows that are normally on the bottom (errors list, find window, call stack, etc...) docked where the code windows normally go. I've also tried having all those things detached and having almost nothing in the IDE proper.

我为我的 2 监视器系统提出的当前最好的方法是分离所有代码窗口。然后,在我的主监视器上,我可以并排拥有两个代码窗口(使用 Windows 7 键盘快捷键 WinKey+LeftArrow 和 WinKey+RightArrow。)在我的辅助监视器上,我将 IDE 的其余部分与所有工具放在一起通常位于底部的窗口(错误列表、查找窗口、调用堆栈等)停靠在代码窗口通常所在的位置。我也试过将所有这些东西分开,并且在 IDE 中几乎没有任何东西。

The problems with this layout are:

这种布局的问题是:

  • Newly opened code windows always open in the IDE, not on top of one of the detached windows.
  • Detached code windows do not remember their exact placement from session to session (they are slightly off, having me to use the winkey + arrow key shortcut again and again for each window.
  • There seems to be no way to have the code panes aware that they are on top of one another (IE -- multiple tabs.)
  • The CTRL+TAB shortcut always displays on top of the IDE proper.
  • The Code Panes are always "on top" of (children of) the IDE. So clicking on any code pane brings the IDE to the foreground, even when I care only about that code pane, and not the IDE.
  • Other more minor issues...
  • 新打开的代码窗口始终在 IDE 中打开,而不是在分离窗口之一的顶部。
  • 分离的代码窗口不记得它们从一个会话到另一个会话的确切位置(它们有点偏离,让我一次又一次地为每个窗口使用 winkey + 箭头键快捷方式。
  • 似乎没有办法让代码窗格意识到它们彼此重叠(IE - 多个选项卡。)
  • CTRL+TAB 快捷方式始终显示在 IDE 的顶部。
  • 代码窗格始终位于 IDE(子项)的“顶部”。因此,单击任何代码窗格都会将 IDE 带到前台,即使我只关心该代码窗格,而不关心 IDE。
  • 其他更小的问题...

What would go a long way to making this better is having the code panes detach such that they are tab strips that can have other code panes docked within them.

将代码窗格分离,使它们成为可以将其他代码窗格停靠在其中的选项卡条,这对改进这一点大有帮助。

The new multi-monitor support in VS2010 is good, but it still seems really lacking.

VS2010 中新的多显示器支持是不错的,但它似乎仍然很缺乏。

Can these issues be solved with an add-in? If so, is anyone aware of one?

这些问题可以通过插件解决吗?如果是这样,有人知道吗?

Is there a better way to work with the IDE on multiple monitors than what I am doing?

有没有比我正在做的更好的方法在多台显示器上使用 IDE?

NOTE: While this question is subjective (there is certainly no "this is the best way and that's final" answer) I'd really like to know possibly better methods of working with the IDE than what I have come up with. The intent is not to start a "mine's best" flame war.

注意:虽然这个问题是主观的(当然没有“这是最好的方法,也是最终的”答案)我真的很想知道可能比我想出的更好的使用 IDE 的方法。目的不是要开始一场“我最好的”火焰War。

回答by Bobson

I'm late to this question, and VS2012 has been out for a while now, but there are Microsoft's Visual Studio Power Tools, which include the Document Tab Well. It lets you group tabs, put multiple tabs in each floating window, float windows by default, and so on.

我在这个问题上迟到了,VS2012 已经出来一段时间了,但是有 Microsoft 的Visual Studio Power Tools,其中包括 Document Tab Well。它允许您对选项卡进行分组、在每个浮动窗口中放置多个选项卡、默认浮动窗口等。

In VS2012's power tools, it appears to be called "Custom Document Well", but seems to have the same type of functionality.

VS2012 的 power tools 中,它似乎被称为“自定义文档井”,但似乎具有相同类型的功能。

回答by sbi

I always have my IDE on the right monitor, with all the editor windows and tools there. That leaves the left monitor for the programs to debug, my email client, wasting time on SO, and other stuff. You can have editor windows side-by-side even in older versions of VS by using vertical tab groups. This still works in VS2010 and allows you to rearrange them by dragging them between tab groups.

我的 IDE 总是在正确的显示器上,所有的编辑器窗口和工具都在那里。这留下了用于调试程序的左侧监视器、我的电子邮件客户端、在 SO 上浪费时间以及其他东西。即使在旧版本的 VS 中,您也可以通过使用垂直选项卡组并排显示编辑器窗口。这在 VS2010 中仍然有效,并允许您通过在选项卡组之间拖动它们来重新排列它们。

Sometimes I put the output and stack windows on the left monitor, below the debugged program, in order to have more screen real estate for looking at the code.

有时我将输出和堆栈窗口放在左侧监视器上,在调试程序下方,以便有更多的屏幕空间用于查看代码。

回答by Rick

I have a 3 monitor setup, I've found it just doesn't quite work for me with 2. I have one center larger monitor in normal landscape mode and I keep the side monitors in portrait mode.

我有一个 3 显示器设置,我发现它对我来说不太适合 2。我在正常横向模式下有一个中央较大的显示器,而我将侧面显示器保持在纵向模式。

On the center monitor, I keep the IDE with either one or two panes of code windows. I also still keep the output and watch windows on the bottom below the code windows.

在中央监视器上,我将 IDE 与一个或两个代码窗口窗格保持在一起。我仍然将输出和观察窗口保留在代码窗口下方的底部。

On my left monitor I place the navigation windows, like the solution explorer and my visual assist tool windows.

在我的左侧监视器上,我放置了导航窗口,例如解决方案资源管理器和我的视觉辅助工具窗口。

On the right monitor I keep threads / call stack or the new parallel stacks windows and my mail / browser / documentation windows.

在右侧监视器上,我保留线程/调用堆栈或新的并行堆栈窗口和邮件/浏览器/文档窗口。

回答by Edward Wilde

Perspectives

观点

http://perspectives.codeplex.com

http://perspectives.codeplex.com

Perspectives allows Visual Studio 2010 and 2012 users to select and manager Visual Studio windows configurations. This works much the same as perspectives in Eclipse.

Perspectives 允许 Visual Studio 2010 和 2012 用户选择和管理 Visual Studio 窗口配置。这与 Eclipse 中的透视图非常相似。

Features

特征

  • View available perspectives
  • Apply perspectives
  • Add new perspectives
  • Update perspectives
  • Delete perspectives
  • 查看可用的观点
  • 应用观点
  • 添加新视角
  • 更新观点
  • 删除视角

回答by jaywon

I haven't used VS2010 yet, but what I like to do a lot with VS2008 as well as many other IDEs is actually expand the entire IDE to cover both monitors(I have my monitors side by side).

我还没有使用 VS2010,但我喜欢用 VS2008 以及许多其他 IDE 做的很多事情实际上是扩展整个 IDE 以覆盖两个显示器(我的显示器并排放置)。

When looking at related files(.aspx and .aspx.cs) it's nice to see as much of the code as possible, so I like to allow each file to have their own screen.

在查看相关文件(.aspx 和 .aspx.cs)时,看到尽可能多的代码很好,所以我喜欢让每个文件都有自己的屏幕。

On the other hand, when working with something like Illustrator or Photoshop it's nice to have all the tools and views on another screen so you can focus on your layout.

另一方面,在使用 Illustrator 或 Photoshop 之类的工具时,最好在另一个屏幕上拥有所有工具和视图,这样您就可以专注于布局。