文章目录 安装 google-java-format 插件启用 google-java-format安装 save actions 插件启用 save actions 安装 google-java-format 插件 File->Settings->plugins->Browse repositories 搜索 google-java-format 启用 google-java-format 安装 save actions 插件 搜索 save actions 启用 save actions 保存时自动格式化 将没用的import 语句删除