Visual Studio 多显示器笔记本电脑对接至未对接

发布于 2024-10-03 04:47:29 字数 309 浏览 0 评论 0原文

当我将笔记本电脑连接到坞站时,我喜欢将 Visual Studio 及其侧边栏窗口分布在两台显示器上,这样我就可以在第二台显示器上获得最大化的代码视图和所有补充窗口。当我拔出笔记本电脑以便随时随地工作时,我显然失去了 2 个显示器的优势。然而,在 1 台和 2 台显示器之间切换是一种艰难的体验,因为当您来回切换时,窗口布局会全部搞砸或丢失。

有人以这种方式工作并找到了在两台显示器和笔记本电脑显示器之间对接和断开对接时保持布局的成功方法吗?我意识到你可能无法在两种情况下拥有完全相同的布局,但是 VS 是否可以变得足够智能以在两种布局配置之间切换或其他什么?

提前致谢。

When I have my laptop docked, I like to have Visual Studio and it's sidebar windows spread across 2 monitors, so that I can have a maximized code view and all the supplementary windows over on the second monitor. When I undock my laptop to work on the go, I obviously lose the 2 monitor advantage. However, switching between 1 and 2 monitors is a rough experience, as window layouts get all screwed up or lost as you switch back and forth.

Anyone out there that works this way and as found a successful way to keep layouts as you dock and undock between 2 monitors and the laptop monitor? I realize you probably can't have the exact same layout in both scenarios, but can VS be made smart enough to switch between 2 layout configurations or something?

Thanks in advance.

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

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

发布评论

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

评论(3

山田美奈子 2024-10-10 04:47:29

这就是我所做的:

  1. 根据需要在两个设置(多个显示器和单个笔记本电脑屏幕)中的每一个上设置环境窗口。

  2. 使用“导入和导出设置向导”(位于“工具”菜单中),选择仅将“常规设置 > 窗口布局”导出到以每个配置命名的文件中。将文件保存在方便使用的地方。

  3. 然后,每当您切换设置时,请使用“导入和导出设置向导”导入准确描述新设置的设置文件。 Visual Studio 会将工具窗口重新排列为设置文件中描述的布局。

不幸的是,Visual Studio 还不够智能,无法自动为您处理此问题(目前),因此您仍然必须自己在两种布局之间切换。这有点像黑客,但它绝对有效。

如果您真的很喜欢冒险(或感到沮丧),您可以编写扩展 让 Visual Studio 记住您的窗口位置和/或自动导入适当的设置文件。我相信,你和我并不是唯一能够充分利用这一点的人。

Here's what I do:

  1. Set up the environment windows as you want them on each of your two setups (multiple monitors and single laptop screen).

  2. Using the "Import and Export Settings Wizard" (found in the Tools menu), choose to export only the "General Settings > Window Layouts" to files named for each configuration. Keep the files somewhere where they will always be handy.

  3. Then, whenever you switch setups, use the "Import and Export Settings Wizard" to import the settings file that accurately describes your new setup. Visual Studio will rearrange the tool windows to the layout described in the settings file.

Unfortunately Visual Studio is not smart enough to handle this for you automatically (yet), so you still have to switch between the two layouts yourself. It's a bit of a hack, but it definitely works.

If you were feeling really adventurous (or frustrated), you could write an extension for Visual Studio to remember your window positions and/or automatically import the appropriate settings file. I'm confident that you and I are not the only ones who could put this to good use.

狼性发作 2024-10-10 04:47:29

Visual Studio 会记住 3 种布局 - 正常、全屏和调试。您可以按照自己想要的方式自定义这些,然后可以在对接/脱离对接时使用正常/全屏进行切换。比导入设置快一点。

Visual Studio remembers 3 layouts - Normal, Full Screen and Debug. You can customize these the way you want and then you can use Normal/Full Screen to switch when you're docked/undocked. Little faster than importing settings.

柠檬色的秋千 2024-10-10 04:47:29

Visual Studio 暗示您使用的是 Windows。我曾经使用一个名为 UltraMon 的产品来帮助解决这个问题。希望 Mac 上有类似的东西。

Visual Studio implies you're using Windows. I used to use a product called UltraMon to help out with this. Wish there was an equivalent for Mac.

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