androidandroid-studioformattingandroid-studio-2.2

Reformat Whole Project Files in Android Studio


I need to update my code style. Reformatting the whole project files one by one takes too much effort with the shortcuts I know.

Opt + Command + L

My Question?

Is there any other way to do it for the whole project?


Solution

  • Use the re-format code shortcut (default: ⌘ + Opt + L (Mac) / Ctrl + Alt + L (PC)) in the Project Files View/Explorer on the desired root folder(s) and then check Include subdirectories.

    Project File View

    Reformat Code Options