Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you stop Visual Studio rearranging its Windows when debugging

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

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?

like image 521
LondonPhantom Avatar asked Oct 01 '10 09:10

LondonPhantom


People also ask

How do I arrange windows in Visual Studio?

It's easy to set your default layout: Arrange your windows the way you like, go to the Window menu in Visual Studio and pick Apply Window Layout > My Default. If you want you can setup several window layouts by picking Window > Save Window Layout. This choice gives you the option of assigning a name to your layout.

How do I stop Debugging in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do I dock the Output window in Visual Studio?

First, click and hold the title bar with the mouse, and then drag the window to where you want to dock it. Visual Studio displays some docking icons. Four icons are at the edge of the IDE, one each at the left, top, right, and bottom. These icons are used for docking the window at the given edge of the IDE.


1 Answers

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

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

like image 109
zainnab Avatar answered Nov 11 '22 17:11

zainnab