Eclipse设置保存代码时自动格式化代码 一、路径:Window——》Preferences——》Java——》Editor——》Save Actions 二、勾选完成后记得Apply and Close