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?
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.
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.
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).
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.
Interesting timing. Zain Naboulsi just wrote a few posts about this in the Visual Studio Tip and Tricks blog:
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>
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With