After reformatting code in layout XML, Android studio 3.5 is reverse whole code. So anyone has a solution for that?
Asked
Active
Viewed 884 times
5
-
Try Default code style, go to Settings > Editor > Code style and set it to default – Maddy Aug 21 '19 at 04:51
-
This problem is also in default code style as well. After updating Android Studio 3.5 this problem occurs. – Akash Ratanpara Aug 21 '19 at 04:55
-
I think it's just Rearragening the code, can you try remove "Rearrange code" from the code format? – Maddy Aug 21 '19 at 05:01
-
Refer this : https://issuetracker.google.com/issues/129323345 – Maddy Aug 21 '19 at 05:10
-
If you don't have any custom code style for your IDE File | Settings | Editor | Code Style | XML | Arrangement Find gear(settings) icon in the top, click it then press "restore defaults". – KuLdip PaTel Aug 22 '19 at 03:33
1 Answers
7
- Open Settings > Editor > Code Style > XML > Arrangements
- Click Set from... text
- Select Predefined Styles > Android
- Click Apply button

MertNYuksel
- 311
- 1
- 8