删除无效导包:
settings -> editing -> general -> auto import -> java项中勾选optimize imports on the fly
删除空行:
1.ctrl + r
2.
Replace all
3.Ctrl+Alt+L
settings -> editing -> general -> auto import -> java项中勾选optimize imports on the fly
1.ctrl + r
2.
Replace all
3.Ctrl+Alt+L