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?
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?
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!
UPDATED
Now for Android Studio "Arctic Fox" - Preferences -> Editor -> Design Tools. Nice!
Here's what worked for me, hope it works for you too.
Android Studio then remembered my selection for all other tabs opened from then on.
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.