如何在提交時刪除 Intellij IDEA 中未使用的導入? - How to remove unused imports in Intellij IDEA on commit?

問題:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章