简体   繁体   中英

How to prevent Android studio from formatting build.gradle

Every time I'm adding an activity or fragment android studio automatically reformat build.gradle file and messes up my dependencies even if nothing have been added.

it's very annoying because every time I have to reverse the changes from my VCS. I've tried to stop disable code formatting as mentioned in this answer without much luck.

As far as I know there is no solution to this issue. There's still an open bug on AOSP issue tracker . Make sure you vote for it.

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