删除无效导包:
settings -> editing -> general -> auto import -> java项中勾选optimize imports on the fly
删除空行:
1.ctrl + r
2.
Replace all
3.Ctrl+Alt+L
版权声明:本文为CW_SZDX原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
settings -> editing -> general -> auto import -> java项中勾选optimize imports on the fly
1.ctrl + r
2.
Replace all
3.Ctrl+Alt+L