So i want to setting my code formatting for flutter in android studio I want it to look like this
but when i do Ctrl+Alt+L it becomes like this
To make the code reformat as you want it to, you need to add a comma ,
at the end of all properties. Example:
Container(
width: 10,
height: 10,
)
Without the last comma, you get this:
Container(width: 10, height: 10)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.