Shortcut to switch between design and text in Android Studio

后端 未结 14 764
孤街浪徒
孤街浪徒 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 08:54

    ALT + SHIFT + LEFT/RIGHT on windows and ubuntu.

    CTRL + SHIFT + LEFT/RIGHT on MAC

    0 讨论(0)
  • 2020-12-13 08:54

    Move between Design / Text tabs in layout’s view:

    (Mac) : control + shift + /

    (Windows / Linux): alt + shift + /

    0 讨论(0)
  • 2020-12-13 08:56

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

    0 讨论(0)
  • 2020-12-13 08:59

    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)

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

    Good Question:

    There are 2 ways:

    • If You are on a Activity ( Design or Text)

      1) left click on Text or Design 2) ALT + SHIFT + Right/Left arrow key

    • If You are on a class

      1) click on the name of the activity: example: click on activity_actividad2_blank setContentView(R.layout.activity_actividad2_blank);

      2) click on Project goto to java class left click on class and click on "Find Usages" ( Or ALT + F7) double click on result you want to go.

    Have a good programming.

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

    (CTRL + SHIFT) + LEFT or RIGHT arrow keys,

    To go back and forth in between Design tab and Text(XML) tab, on Mac OS X.

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