Shortcut to switch between design and text in Android Studio

后端 未结 14 766
孤街浪徒
孤街浪徒 2020-12-13 08:51

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

相关标签:
14条回答
  • 2020-12-13 09:07

    Although the question is related to switching between design and xml views, many people may be looking for or interested in how to switch between related XML and Java files. This can be achieved in Android Studio, using the Related Symbol... navigation key mapping.

    Depending on your settings and operating system the keyboard shortcut will vary, but you can find out what yours is by looking in Settings -> Keymap -> Main menu / Navigate / Related Symbol...

    Otherwise try the following keys:

    • Ctrl + Alt + F7
    • Ctrl + Alt + Home
    • Meta + Ctrl + Up
    0 讨论(0)
  • 2020-12-13 09:08

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

    0 讨论(0)
  • 2020-12-13 09:09

    ALT+SHIFT+RIGHT ARROW worked for me on ubuntu

    0 讨论(0)
  • 2020-12-13 09:13

    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.

    0 讨论(0)
  • 2020-12-13 09:14

    ALT + Shift + Left/Right works for me. (Windows)

    0 讨论(0)
  • 2020-12-13 09:15

    On Android Studio 2.3+, one can use the shortcut Ctrl+T.

    0 讨论(0)
提交回复
热议问题