Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 955
Mohammad Ali Rony Avatar asked Jun 08 '26 07:06

Mohammad Ali Rony


2 Answers

  1. Open Settings

  2. Go to Languages & Frameworks

  3. Select Flutter

  4. Tick Format code on save

res

like image 69
Mobina Avatar answered Jun 10 '26 21:06

Mobina


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

like image 35
Javeed Ishaq Avatar answered Jun 10 '26 22:06

Javeed Ishaq



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!