How do you auto format code in Android Studio on save for Flutter?

Viewed 1468

Is there any way to auto-formatcode in Android Studio on save for Flutter?

2 Answers
  1. Open Settings

  2. Go to Languages & Frameworks

  3. Select Flutter

  4. Tick Format code on save

res

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.

enter image description here

Related