visual-studio 使用 Visual Studio 2008 的多个监视器

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

Multiple Monitors with Visual Studio 2008

visual-studiomultiple-monitors

提问by Alex Fort

I've got 2 monitors, and most of the time I've got some reference material open on one screen, and Visual Studio on the other. To really get in the zone, though, I need my code to be the only thing I see. Does anyone know if it's possible to have multiple code windows in Visual Studio? So far the best I can do is put debugger output and the solution explorer on my left monitor, and the rest of VS on the right. I would love to have code on both windows, however.

我有 2 个显示器,大部分时间我在一个屏幕上打开一些参考资料,在另一个屏幕上打开 Visual Studio。但是,要真正进入该区域,我需要我的代码成为我唯一看到的东西。有谁知道在 Visual Studio 中是否可以有多个代码窗口?到目前为止,我能做的最好的事情就是将调试器输出和解决方案资源管理器放在我的左侧监视器上,而 VS 的其余部分放在右侧。但是,我希望在两个窗口上都有代码。

回答by Nick Craver

If you right click on the file tabs, there's an option for "New Vertical Tab group" Just maximize across both monitors and put the divider on the monitor divide and I think that's what you're after.

如果您右键单击文件选项卡,则会有一个“新垂直选项卡组”选项,只需在两台显示器上最大化并将分隔线放在显示器分隔线上,我认为这就是您所追求的。

回答by ram

Though I use StudioToolsfor other purposes, it has a "Tear off Editor" option, with which you can "tear off" the file to a window and resize the window. Find it quite helpful

尽管我将StudioTools用于其他目的,但它有一个“撕下编辑器”选项,您可以使用该选项将文件“撕下”到一个窗口并调整窗口大小。觉得很有帮助

回答by Xavier Nodet

Instead of enlarging the VS2008 window to span the two monitors, you can display the 'Code Definition Window' on another monitor: just drag it outside the main window! I find this very handy to avoid switching between code windows: it is very often that one is interested in the definition of the symbol under the cursor...

您可以在另一台显示器上显示“代码定义窗口”,而不是扩大 VS2008 窗口以跨越两个显示器:只需将其拖到主窗口之外!我发现这对于避免在代码窗口之间切换非常方便:人们经常对光标下符号的定义感兴趣......

The same is true for other windows like the 'Class View', the 'Call Browser', etc. You can choose to keep them grouped in the same group with tabs, or drag each of them separately (click on the label of the tab to start the drag).

对于“类视图”、“调用浏览器”等其他窗口也是如此。您可以选择将它们与选项卡放在同一组中,或者分别拖动它们(单击选项卡的标签开始拖动)。