問題:
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