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