Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make Visual Studio use the GUI same layout while programming and while debugging?

Visual Studio uses two different GUI layouts depending on whether or not your code is running. I understand the purpose of this (letting you only show debugging-related windows while you're actually debugging) but I find this feature annoying and would prefer the same layout be used while both debugging and not.

Is it possible to disable this feature and, if so, how?

like image 896
crdx Avatar asked Nov 24 '10 15:11

crdx


People also ask

How do I change the layout of 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.

How do I set debugger to mixed?

Enable mixed-mode debugging for a native calling appIn the <Project> Property Pages dialog box, expand Configuration Properties, and then select Debugging. Set Debugger Type to Mixed or Auto. Select OK.

How do I set Debug mode in Visual Studio?

In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release. Select the Advanced button (or the Advanced Compile Options button in Visual Basic).

How do I dock a tab 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.


2 Answers

Interesting timing. Zain Naboulsi just wrote a few posts about this in the Visual Studio Tip and Tricks blog:

  1. Window Layouts: The Four Modes
  2. Window Layouts: Design, Debug, and Full Screen
  3. Window Layouts: File View

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.

EDIT

Disclaimer: I haven't tried this myself, but it look promising. If you export your Visual Studio settings and edit the resulting file with a text editor, you can find a <Category name="Environment_WindowLayout"> element with child elements for each layout. I would guess that copying <Design> into the <Debug> would result in both layouts being identical. Maybe someone can write a VS add-in or external utility to automate this :)

Here is a simplification of what the relevant settings XML layout looks like:

<UserSettings>
    <Category name="Environment_Group" ...>
        <Category name="Environment_WindowLayout" ...>
            <NoToolWin>
                ...
            </NoToolWin>
            <Design>
                ... 
            </Design>
            <Debug>
                ...
            </Debug>
            <Design-FullScreen>
                ...
            </Design-FullScreen>
        </Category>
    </Category>
</UserSettings>
like image 90
Lucas Avatar answered Sep 28 '22 17:09

Lucas


As far as I know, there is no way to change this behavior. However, what I do is set them both up to be the same (set up the windows twice; once while writing code and once while debugging) and there will be no change in appearance.

like image 25
Mark Avenius Avatar answered Sep 28 '22 16:09

Mark Avenius