Checkstyle是一种静态代码分析工具。它不进行格式化。 然而,Eclipse预装了Java代码格式化程序。 请在此处查看详细信息: http://www.ralfebert.de/blog/eclipseide/source_formatting/