intellj idea格式化整个文件代码 菜单栏中的Code->Reformat Code intellj idea只格式化部分代码 选中要格式化的代码,点击菜单栏中的Code->Reformat Code, PS:如果不选中,则为格式化整个文件