wpfvisual-studiodesigner

How to automatically split window vertically in Visual Studio?


I have a problem, I can't seem to find the solution to automatically save the window layout in Visual Studio. I wanted to always make the document be split vertically in all instances. Meaning, if I open Document2, it should already be split vertically. I also wanted to save the window size and layout from Document1 so I can apply it in Document2. The Save Window Layout feature doesn't seem to solve this problem, it only saves "what" the windows are, not how they are placed.

This is how it looks like if I split window vertically: This is how it looks like if I split window vertically

This is how it looks like if I create a new file/document: This is how it looks like if I create a new file/document


Solution

  • The relevant option is XAML Designer > Split Orientation. But for the already opened XAML files, their layout configurations are saved in the .vs/<ver>/.suo file, and you may need to delete it.

    Options