Is there any way to auto-formatcode in Android Studio on save for Flutter?
3 Answers
Flutter How to enable auto-format on "save
" in android studio
on macOS, the initial step is slightly different
AndroidStudio->Prefrences->Languages & Frameworks -> Flutter and check Format code on save.
Android Studio Flamingo 2022. You can do it in two ways: First, open your project, then
File -> settings -> under Languages & Frameworks -> select Flutter or Dart ->
Select format code on save
Also, can be done via:
Tools -> Actions on Save -> Reformat code