如何更改文本编辑器中默认文本的显示方式

时间:2018-10-29 13:37:36

标签: android-studio

这是它的显示方式:

<ImageView
  android:layout_width="0dp"
  android:layout_height="0dp" app:srcCompat="@drawable/hatimage"
  android:id="@+id/imageView"
  app:layout_constraintTop_toTopOf="parent" android:layout_marginBottom="8dp"
  app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent"
  app:layout_constraintVertical_bias="0.497" app:layout_constraintEnd_toEndOf="parent"
  android:layout_marginEnd="8dp" android:layout_marginTop="8dp"/>
</android.support.constraint.ConstraintLayout>

我想要的样子:

<ImageView
  android:layout_width="0dp"
  android:layout_height="0dp"
  app:srcCompat="@drawable/hatimage"
  android:id="@+id/imageView"
  app:layout_constraintTop_toTopOf="parent"
  android:layout_marginBottom="8dp"
  app:layout_constraintBottom_toBottomOf="parent"
  app:layout_constraintStart_toStartOf="parent"
  app:layout_constraintVertical_bias="0.497"
  app:layout_constraintEnd_toEndOf="parent"
  android:layout_marginEnd="8dp"
  android:layout_marginTop="8dp"/>
</android.support.constraint.ConstraintLayout>

1 个答案:

答案 0 :(得分:0)

Ctrl + Alt + L

Linux:

Ctrl + Shift + Alt + L

Mac:

Option + Command + L