Reformat Code in Android Studio

Quick Android Tip of the Day. Ever open a source file in android studio and realize that the code isn’t properly formatted? 3 Keystrokes is all that is needed to fix that. This works in XML files too not just Java and Kotlin.

Auto Format Code Hot Key
Mac: ⌘ + ⌥ + L or Command + Option + L
Win/Linux: Control + Option + L

Leave a Reply

Your email address will not be published. Required fields are marked *