Android--Android Studio使用技巧--设置代码自动换行

Mac版

打开preferences然后找到editor--code style--JAVA--wrapping and braces

选中line breaks和ensure right margin is not exceeded

然后点击ok

到代码中格式化代码就可以了

原文地址:https://www.cnblogs.com/chebaodaren/p/6386115.html