idea默认格式化快捷键是:Ctrl+Alt+L,有时会因其它软件快捷键的冲突导致失灵
1.File -> Settings
2.Keymap -> Main Menu-> Code
3.Code Formatting Actions -> Reformat Code
https://blog.51cto.com/u_16099238/6553829