问题:
Is there a way to remove unused imports in Intellij IDEA on commit?有没有办法在提交时删除 Intellij IDEA 中未使用的导入?
It is not very optimal to do it manually, CTRL + ALT + O helps but it's still manual.手动执行不是很理想, CTRL + ALT + O 有帮助,但它仍然是手动的。
解决方案:
参考一: https://en.stackoom.com/question/qnzx参考二: https://stackoom.com/question/qnzx