调试时如何停止Visual Studio重新排列其Windows [英] How can you stop Visual Studio rearranging its Windows when debugging

查看:92
本文介绍了调试时如何停止Visual Studio重新排列其Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道在调试器中运行程序时是否可以阻止Visual Studio 2010重新排列其窗口?

Does anyone know whether it's possible to stop Visual Studio 2010 from rearranging its windows when you run a program in the debugger?

这是我一直记得的Visual Studio版本所做的事情-如果我正确理解的话,它有两种设置窗口方式的设置-一种用于在调试器中的设置,另一种用于在调试器中的设置然后,一旦您启动/停止调试器,它就会在它们之间交换.我总是觉得这很烦人-一部分是因为如果我想将某个特定的Window放在某个地方,我就不必分别告诉VS将它放置两次(一次在调试器中,一次没有),这是因为通常,如果我正在启动程序,这并不意味着我也想立即失去对我碰巧碰到F5之前正在查看的部分代码的了解.那么-有人知道是否有可能关闭该功能,而只安装一种Windows吗?

It's something that Visual Studio versions have done for as long as I remember - if I've understood it correctly, it has two settings for how to arrange its Windows - one for when it's in the debugger and one for when it isn't, and as soon as you start/stop the debugger it swaps between them. I've always found this a bit annoying - partly because if I want to put a particular Window somewhere, I don't want to have to separately tell VS to put it there twice (once in the debugger and once not) and partly because usually if I'm starting the program, it DOESN'T mean I also want to immediately lose my view of the bit of code I happened to be looking at just prior to hitting F5. So - anyone know if it's possible to switch that feature off, and have just one single arrangement of Windows?

推荐答案

由于设计原因,无法关闭此功能.

There is no way to turn this off as it is by desgin.

Visual Studio带有4种窗口布局:设计,调试,全屏模式和文件模式.您可以在此处查看更多信息,例如以下示例:

Visual Studio comes with 4 window layouts: Design, Debug, Full Screen Mode, and File mode. You can get see more info some examples here:

http://blogs.msdn.com/b/zainnab/archive/2010/11/21/window-layouts-the-four-modes-vstipenv0051.aspx

http://blogs.msdn.com/b/zainnab/archive/2010/11/22/window-layouts-design-debug-and-full-screen-vstipenv0052.aspx

http://blogs.msdn.com/b/zainnab/archive/2010/11/23/window-layouts-file-view-vstipenv0053.aspx

这篇关于调试时如何停止Visual Studio重新排列其Windows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆