您的位置: 首页 > 文章 > idea 中格式化项目代码-缩进方式 idea 中格式化项目代码-缩进方式 分类: 文章 • 2024-01-10 16:21:28 如果缩进方式不统一,github查看代码时,会导致代码错乱,影响展示效果对于idea中项目代码的格式化操作: 由于idea中使用了goole-java-formate 和save actions代码格式插件,所以要对相关插件配置进行调整 1 设置code style 2 save actions 配置调整 更改save actions的配置信息: 一定要勾选reformate file 否则代码格式化不生效 3 格式化项目代码 选择项目 - > 右键 - > reformate code