Shortcut to switch between design and text in Android Studio

Viewed 31337

Does anyone know some shortcut to switch between design and text in android studio while editing XML layout?

While I can switch from design view to source using Ctrl+B (and need to select something in layout before), I have no way to go back.

14 Answers

In Windows it's ALT + SHIFT + Left / Right for Android Studio 3.4

ALT+SHIFT+RIGHT ARROW worked for me on ubuntu

alt + shift + left/right arrow keys worked for me in Windows 10 in Android Studio 3.5.

The settings for it is under Settings->Keymap->Other->Select Next Tab in multi-editor file, for Android 3.0.1.

I wanted to switch to the selected View in question. None of the answers did that. So, here we go:

CTRL + B

Period.

Buttons are available to switch between design and text window in XML file in android studio 3.6.1. Shortcut keys are: ALT + Shift + Left/Right works for me. (Windows)

Top Right side buttons

Related