Android 工作室更新到 3.3 后奇怪的 XML 编队。如何恢复 android 样式形成的 xml?

Weird XML formation after Android studio was updated to 3.3. How to get android style formation of xml back?

我已经将我的 Android Studio 更新到 3.3 版本,之后当我从托盘中拖出一些新视图时,它 XML 非常奇怪,有错误的空格和两三个属性 android:blabla 在同一行。当我制作热键 command + shift + L 时,它会将该样式的所有代码都变成错误的空格。如何解决?

  <Button
      android:id="@+id/buttonLiteVersion"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:onClick="onLiteVersion"
      android:text="@string/lite_version_name"
      style="@style/MainMenuButton"
      android:layout_weight="1"/>
  <Button
          android:text="Button"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content" android:id="@+id/button2" android:layout_weight="1"/>

上部为更新前,下部为更新后

如果 command + shift + L(在 PC 上其 Ctrl+Alt+L - 重新格式化代码)对您不起作用,请尝试更改您的设置:

 Settings->Editor->Code Style->XML->Android->Layout Files->Wrap Attributes