[英]Android Studio Beta 1.2 issue formatting xml-layout
Recently I've upgraded from Android Studio 1 to Android Studio Beta 1.2. 最近,我已从Android Studio 1升级到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. 除其他问题外,似乎用于格式化xml布局的快捷方式(Option + Command + L)不再重组代码。
In the previous version of Android Studio, if you had something like this: 在先前版本的Android Studio中,如果您有以下内容:
<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,您应该有一个对话框,您可以在其中勾选“重新排列”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.