Make XML Split view default in Android Studio 3.6+?

Android Studio

Android Studio Problem Overview


In Android Studio 3.6 and above, an XML file always opens in the "Code" view by default. How do I make it open in "Split" view by default?

Android Studio Solutions


Solution 1 - Android Studio

In Android Studio 3.6 if you open Preference->Editor->Layout editor you can see for this case only check/uncheck "Prefer XML editor" for show modes "Code" or "Design" view without "Split", very strange... Waiting for possibility check mode "Split"

UPDATED

Now Android Studio 4.0 has "Split" option. Nice!

enter image description here


UPDATED

Now for Android Studio "Arctic Fox" - Preferences -> Editor -> Design Tools. Nice!

enter image description here

Solution 2 - Android Studio

Here's what worked for me, hope it works for you too.

  1. Close all tabs in your editors.
  2. Open one xml file and click on the split view button at the top-right section of the tab.
  3. Close the tab again.

Android Studio then remembered my selection for all other tabs opened from then on.

Solution 3 - Android Studio

 keyMap for ShortCuts Using the keyboard shortcuts (Ctrl + Shift + Left/Right Arrow if you are on a Mac, or Alt + Shift + Left/Right Arrow otherwise):

  • Code: provides the functionality of an XML text editor.

  • Design: consists of a view containing the design editor (e.g. navigation graph, layout) that can be used to edit the file graphically.

  • Split: displays both Code and Design side-by-side, so you can preview your design while editing the text.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionkp91View Question on Stackoverflow
Solution 1 - Android Studionicolas asinovichView Answer on Stackoverflow
Solution 2 - Android StudioJJ Du PlessisView Answer on Stackoverflow
Solution 3 - Android StudioGreatJohnView Answer on Stackoverflow