gpt4 book ai didi

visual-studio - Visual Studio 中 'edit' 和 'debug' 的单一布局

转载 作者:行者123 更新时间:2023-12-03 06:08:13 26 4
gpt4 key购买 nike

在 Visual Studio 2008 中,“开始调试”将 Visual Studio 切换到不同的布局。如何强制 Visual Studio 始终使用单一布局?

我可以尝试在正常和“调试”模式下尽可能相似地布置我的窗口。但是,i) Visual Studio 仍会进行可见的重绘,并且 ii) 我必须手动保持布局同步。

更新:似乎正确的术语是“设计 View ”和“调试 View ”。根据 Window Layouts: The Four Modes “目前无法告诉 Visual Studio 对所有模式使用一种状态。”这是真的吗?

最佳答案

不,这是不可能的。 website you found确实是准确的:

There are four different window layout modes in Visual Studio:

  • Design View - this is the one you see when you start up Visual Studio. It's what most people refer to as the "normal" view.
  • Debugging View - this is the view that you get when you enter Debug Mode like when you are stepping through your code
  • Full Screen - the view you get when you go to View -> Full Screen (Shift + Alt + Enter).
  • File View - the lesser known view you can get when you open up a file in DevEnv.eve

The thing to remember here is that, both, your tool windows and your command bar customizations are saved separately for each state. There is no way to tell Visual Studio to use one state for all modes at this time. Additionally, when you shut down Visual Studio in any state, all four states are saved.



您希望对所有四种模式使用相同的窗口布局,这很奇怪。在设计时有用的相同窗口在调试期间几乎没有用,反之亦然。
例如,在调试 View 中,我隐藏了工具箱、文档大纲和属性管理器窗口。然后,我添加了非常有用的 Call Stack、Autos、Locals、Processes、Modules 和 Breakpoints 窗口。在设计模式下,后一个 Pane 对我来说都没有远程用处,所以我不希望它们占用屏幕空间。但是它们在 Debug模式下是无价的,所以我希望它们出现。我还在两种不同模式下根据它们的相对重要性(例如“属性”窗口)调整窗口大小。

如果您仍然认为两个 View 应该具有相同的窗口布局,那么您可以做的最好的事情是手动重新排列窗口以在两种模式下实现相同的布局。我还建议导出您的窗口布局设置(工具 -> 导入和导出设置),以便在发生灾难时可以恢复到一个全新的副本。我保留设置文件,其中包含我喜欢的单显示器(笔记本电脑)、双显示器和三显示器配置的窗口布局设置。

关于visual-studio - Visual Studio 中 'edit' 和 'debug' 的单一布局,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5610119/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com