Visual Studio 和双/多显示器:如何优化显示器的使用?

发布于 2024-07-05 11:44:49 字数 263 浏览 6 评论 0原文

Ultramon 是一个很棒的双显示器程序(跨显示器拉伸屏幕),但我想知道是否有有什么方法可以在 Visual Studio 中执行某些操作,例如在一个监视器上打开一个代码选项卡,在第二个监视器上打开第二个代码选项卡,并且仅运行一个 Visual Studio 实例?

或者还有其他关于在双显示器和 Visual Studio 上获得最大性价比的建议吗?

Ultramon is a great program for dual monitors (stretching screen across monitors), but I was wondering if there is any way do to something in Visual Studio like have one tab of code open on one monitor and a second tab of code open on the second monitor with only one instance of Visual Studio running?

Or are there any other suggestions on getting most bang for buck on dual monitors and Visual Studio?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

情深如许 2024-07-12 11:44:50

您可以尝试右键单击解决方案资源管理器中的文件,打开方式,然后找到 devenv.exe。 这将在 VS 的新实例中打开它。 另外,它将 devenv 保存为您将来的默认选项之一,因此您不必一直寻找 devenv。 不漂亮,但一个选择。

You could try right-clicking a file in solution explorer, Open With, and then go find devenv.exe. That will open it up in a new instance of VS. Plus, it saves devenv as one of your default options in the future, so you don't have to go hunting around for devenv all the time. Not beautiful, but an option.

意中人 2024-07-12 11:44:50

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

Though I use StudioTools for 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

相对绾红妆 2024-07-12 11:44:50

我发现在我的另一台显示器中打开“代码定义”窗口绝对是无价的。 当光标移动到编辑器中的类型名称上时,另一个窗口会显示其定义。

I find the Code Definition window absolutely invaluable to have open in my other monitor. As the cursor moves over a type name in your editor the other window shows its definition.

情话墙 2024-07-12 11:44:50

三个显示器 - 均为 1600x1200

  • 左侧:电子邮件、IM、SQL Server Management Studio、到服务器的远程桌面
  • 中间:VisualStudio - 可能是多个实例 - 最大化,解决方案资源管理器和团队资源管理器停靠在右侧,错误/输出停靠在底部,其他为自动-隐藏
  • 右侧:Web 浏览器 - 应用程序调试和正常的 Web 工作、ADUC(如果需要)

其他应用程序的移动取决于我正在处理的内容、显示器的拥挤程度以及打开的应用程序与我的应用程序之间的交互需要其中的信息。

Three monitors -- all 1600x1200

  • Left: Email, IM, SQL Server Management Studio, Remote Desktops to servers
  • Middle: VisualStudio -- maybe multiple instances -- maximized, solution explorer and team explorer docked on right, errors/output docked bottom, others auto-hide
  • Right: Web browsers -- app debugging and normal web work, ADUC (if needed)

Other apps get moved around depending on what I'm working on and how crowded the monitors are and the interaction between the app that's open and what I need the info from it for.

追风人 2024-07-12 11:44:50

我有三个显示器,设置为 Visual Studio 在中间显示器上全屏显示,右侧显示器配置了所有工具窗口,左侧显示器用于浏览器、帮助、SSMS、电子邮件等。

效果很好,除非我必须远程连接,因此我有一个单独的导出配置,用于将工具窗口移回 Visual Studio,以及一个用于将它们设置为多个监视器的备份。

I have three monitors, set up where Visual Studio is full screen on the middle monitor, the right hand monitor has all the tool windows configured and the left monitor is for browser, help, SSMS, email, etc..

Works well except if I have to remote in, so I have a separate exported configuration to bring move the tool windows back into Visual Studio, and one to set them back up for multiple monitors.

孤君无依 2024-07-12 11:44:49

对于 GUI 调试来说,能够在一个屏幕上运行应用程序并在另一个屏幕上运行调试器是非常棒的。 这是最实际的用途之一。

但实际上,这取决于您正在开发哪种类型的应用程序,即是否需要监视打开的文件句柄、日志等。

For GUI debugging is awesome being able to run the app into one screen and having the debugger in another screen. That's one of the most practical uses..

But really, depends on which kind of application you're developing, i.e., if you need to monitor open file handles, logs, etc.

流年已逝 2024-07-12 11:44:49

我的左侧显示器中有 VS,右侧有 GUI/运行窗口。 但是,如果您希望在每个显示器上打开代码选项卡,则可以使用 UltraMon 的选项在两个显示器上展开窗口,然后将代码页拖到上面,以形成分隔线。 然后,将该分隔线与显示器中的间隙对齐。

我以前也这么做过,只是为了测试一下。 这不是一个糟糕的设置。

I have VS in my left monitor and the GUI/running window in the right. However, if you want to have to code tabs open on each monitor, you could use UltraMon's option to expand a window across both monitors, then drag a code page over such that it puts up a divider. Then, you align that divider with the break in your monitors.

I've done that before, just to test it out. It's not a bad setup.

卖梦商人 2024-07-12 11:44:49

当我第一次得到两台显示器时,我想做和你一样的事情,使用 Visual Studio 的所有空间,但我认为你开始意识到最好将 VS 保留在一台显示器上,并使用第二台显示器来保存文档、外部资源您一开始不会想到这一点,但是所有的小细节(例如能够最大化其他资源而不隐藏您的代码)都是一个很棒的功能。

When I first got two monitors I wanted to do the same as you, use all the space for visual studio, but I think that you come to realize that it's best to keep VS on one monitor and use the second monitor for documentation, external resources etc. You wouldn't think it at first, but all the little touches like just being able to maximize other resources without them hiding your code is a great feature.

夜唯美灬不弃 2024-07-12 11:44:49

我有三个显示器,所以我通常使用以下配置运行:

  • 左显示器:文档/电子书。
  • 中间监视器:代码/调试
  • 右侧监视器:测试应用程序/滚动日志文件(如果需要)

这通常工作得很好,并且由于监视器相当大,我很少需要全屏使用测试应用程序,因此有足够的空间我的尾巴-f窗口。

我还使用 AutoHotkey 来分配可翻转到最重要窗口的热键,例如 Firefox 或我的 SSH 会话。 这样我就可以在需要时简单地使用快捷键来访问它们。

左侧显示器实际上是一台运行 Linux 的独立计算机,并且与 Synergy 共享键盘/鼠标,因此我打开了多个电子书或文档页面,每个虚拟桌面上都有一个...我可以通过将鼠标向左移动并在文档之间进行翻转使用快捷键。

I have three monitors, so I usually run with this configuration:

  • Left Monitor: documentation / ebooks.
  • Middle Monitor: code / debugging
  • Right Monitor: Test application / scrolling logfiles (if needed)

This usually works pretty well, and since the monitors are fairly big I rarely need to use the test application in full-screen, so there's plenty of room for my tail -f windows.

I also use AutoHotkey to assign hotkeys that flip to the most important windows, like Firefox or my SSH session. That way I can simply use a shortcut key to access them when necessary.

The left monitor is actually a separate computer running Linux and keyboard/mouse shared with Synergy, so I have multiple ebooks or documentation pages open, one on each virtual desktop... I can flip between the documentation by moving my mouse to the left and using a shortcut key.

撩动你心 2024-07-12 11:44:49

在一台显示器上打开一个代码选项卡,并在第二台显示器上打开第二个代码选项卡,并且仅运行一个 Visual Studio 实例

您只需将 VS 外部的一个选项卡拖到另一个屏幕上即可。

像这样

have one tab of code open on one monitor and a second tab of code open on the second monitor with only one instance of Visual Studio running

you can simply drag a Tab outside of VS onto your other screen.

like this

顾冷 2024-07-12 11:44:49

就我个人而言,我设置了我的窗口,以便我的主监视器之一,我有主 Visual Studio 监视器,因此我的代码窗口最大化,只有工具箱停靠在左侧。 这意味着代码窗口占用尽可能多的空间,同时保持代码的左边缘靠近屏幕中间,这是我的眼睛自然看到的地方。 我的主显示器是宽屏幕,所以我发现这为我的代码提供了足够的空间。

我的辅助显示器有第二个窗口,其中包含我使用的工具窗口。 因此,我有解决方案资源管理器、错误列表、任务列表(//待办事项:注释)、输出窗口、查找结果等,所有这些都在我的辅助监视器上占用了尽可能多的空间。

调试时,解决方案资源管理器会移动主监视器,并由手表、汽车和本地窗口取代。

我发现这为我提供了一个非常大的区域来编写代码,并且通过为它们提供比通常拥有的更多空间,确实有助于使用所有这些附加窗口。

更新:对于每个人谈论使用第二个显示器进行文档或运行应用程序的回应,我完全同意,但忘记提及我是如何做到这一点的。 我经常使用 PowerMenu 来实现这一点。 基本上我可以右键单击任何窗口并设置“始终在最前面”。 因此,当我在调试时,我想查看我的输出窗口,但如果我必须参考一些文档,我只需轻弹到 Mozilla(在第二个显示器上),将其设置在顶部,然后返回 Visual Studio。 我发现这可以让我管理工具窗口,而不必频繁地调整它们,也不必占用代码窗口中的宝贵空间。

Personally, I have my windows set up so that one my main monitor, I have the main visual studio monitor, so therefore my code window, maximized, with only the toolbox docked, on the left. This means the code window takes up as much space as possible, while keeping the left hand edge of the code close to the middle of the screen, where my eyes naturally look. My main monitor is a wide screen, so I find that gives me more than enough room for my code.

My secondary monitor has a second window, which contains the tool windows that I use. So I have solution explorer, error list, task list (//todo: comments), output window, find results etc. all taking up as much space as they like on my secondary monitor.

When debugging, the solution explorer moves the main monitor, and the watch, autos and locals windows take its place.

I find this gives me a very large area to write code, and really helps usage of all of those additional windows, by giving them more real estate than they'd usually have.

Update: In response to everyone talking about using the second monitor for documentation or running the app, I wholeheartedly agree, and forgot to mention how I do that. I use PowerMenu alot to acheive this. Basically I can right-click on any window and set Always On Top. So while i'm debugging, i want to see my output window, but then if I have to refer to some documentation, I just flick to Mozilla (on the second monitor), set it on top, and go back to visual studio. I find this lets me manage the tool windows without having to either shuffle them around a lot, or take up valuable space in the code window.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文