preferences->Java->Code Style->Code Formatter 转载于:https://www.cnblogs.com/zhangguangju/p/4885464.html