Shortcut to switch between design and text in Android Studio

MainActivity picture MainActivity · Dec 19, 2013 · Viewed 27.8k times · Source

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.

Answer

Gabriele Mariotti picture Gabriele Mariotti · Dec 19, 2013

You can find it in Settings->KeyMap

"Select next Tab in multi-editor file" CRTL+SHIFT+RIGHT (it may depend by the platform).

You can change it.

Now you can check sequence of button in top right bar to switch between design, text and preview.

photo