8

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

3 Answers 3

17
  1. Open Settings

  2. Go to Languages & Frameworks

  3. Select Flutter

  4. Tick Format code on save

res

0
1

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

1

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
0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.