Changed xml text style

Hi,
I recently updated my android studio to the newest version after which my text in xml has changed.Earlier when I used to make changes to a widget or layout through the editor the text in xml used to auto arrange itself in a single and clean line but now when i change something in the editor the xml text arranges itself in such a way that two properties comes in one line which doesnt look clean at all and is annoying to arrange the text again and again.
The text looks like this:-

<Button android:text="Button" android:layout_width="117dp" android:layout_height="76dp" android:id="@+id/button2" android:layout_marginTop="8dp" app:layout_constraintTop_toTopOf="parent" app:layout_constraintEnd_toEndOf="parent" android:layout_marginEnd="8dp" app:layout_constraintStart_toStartOf="parent" android:layout_marginStart="8dp"/>
Please let me know what the issue is.thanks

You have to change the code style from settings to overcome this issue.
Check the below ans. It should solve your issue.