Make XML Split view default in Android Studio 3.6+?
Android StudioAndroid 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!
UPDATED
Now for Android Studio "Arctic Fox" - Preferences -> Editor -> Design Tools
. Nice!
Solution 2 - Android Studio
Here's what worked for me, hope it works for you too.
- Close all tabs in your editors.
- Open one xml file and click on the split view button at the top-right section of the tab.
- Close the tab again.
Android Studio then remembered my selection for all other tabs opened from then on.
Solution 3 - Android Studio
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.