1、安装Eclipse Code Formatter插件 2、下载阿里P3C规范 https://github.com/alibaba/p3c/tree/master/p3c-formatter 2、配置Eclips