android-studiocode-formattingautoformatting

Is there a way to auto format all changed files in Android Studio?


I don't want to auto-format the whole project and get blame in files I have not edited in this PR.
Can I apply linting on only the modified files without manually having to find and select them?

If not, is there a good way to manually find and select all altered files in Android Studio?


Solution

  • I found a way.
    Just select any file -> format -> scope -> All changed files

    enter image description here