您的位置: 首页 > 文章 > Intellij IDEA 代码格式化/保存时自动格式化 Intellij IDEA 代码格式化/保存时自动格式化 分类: 文章 • 2022-10-05 22:16:12 文章目录 安装 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 语句删除