简体   繁体   中英

Android Studio Beta 1.2 issue formatting xml-layout

Recently I've upgraded from Android Studio 1 to Android Studio Beta 1.2.

And among other issues, it seems that the shortcut (Option + Command + L) for formatting the xml-layouts it doesn't reorganice code any more.

In the previous version of Android Studio, if you had something like this:

<RelativeLayout
    android:layout_alignParentLeft="true"
    android:layout_margin="@dimen/_10dp"
    android:id="@+id/rl_avatar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">

After formatting you got the next result:

<RelativeLayout
    android:id="@+id/rl_avatar"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_margin="@dimen/_10dp">

But now I just get this message: “No lines changed. Code is already properly formatted”

Is there any kind of configuration that I'm missing it?

Thanks!

尝试按Ctrl + Shift + Alt + L,您应该有一个对话框,您可以在其中勾选“重新排列”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM