Android Studio 设置

来源:互联网 发布:天睿软件 编辑:程序博客网 时间:2024/06/01 19:07

转至:http://www.360doc.com/content/14/1218/16/8085797_433906134.shtml

 

补充:

转至:http://www.zhihu.com/question/34470912

设置代码超过right margin ,格式化代码后换行。

1)设置行宽,Preferences->Editor->Code Style, 右侧找到Right margin (columns),默认是100,建议设置为120。

2)设置格式化换行,Preferences->Editor->Code Style->Java,点击右侧标签Wrapping and Braces,勾选Line breaks和Ensure right margin is not exceeded。

用这个方法吧
1)全选:command+a
2)合并成一行:control+shift+J
3)格式化:option+command+L

0 0