arrmani88
arrmani88

Reputation: 1072

How to format a specific part of Flutter code in Android Studio

I wrote a part of Flutter code in Android Studio and I want to reformat only this part of code (not the entire code). Is there any way to do this?
Thanks

Upvotes: 0

Views: 345

Answers (2)

Aashish Jha
Aashish Jha

Reputation: 269

select the code and press shortcut key "Alt + Ctrl + L". For whole file "Alt + Ctrl + Shift + L". Or you can go to Code->Format.

Upvotes: 1

Tirth Patel
Tirth Patel

Reputation: 5736

Select that piece of code and use either format shortcut key or menu. That'll only format that piece of code.

Upvotes: 1

Related Questions