Reputation: 1072
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
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
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