前天下課回宿舍用IDEA的時候,忘了我點了什么了,好像不可以自動匯入包了,請問應該去哪里設定啊?
uj5u.com熱心網友回復:
打開你idea的設定面板,依次選擇Editor ——> General ——> Auto Import,在右側勾選Add unambiguous import on the fly和Optimize imports on the fly(for current project)這兩個選項。uj5u.com熱心網友回復:
點擊 file ——》settings ——》Editor ——》General ——》AutoImport然后在右側勾選
Add unambiguous import on the fly 和 Optimize imports on the fly(for current project

這樣就可以自動匯入包了,如果是同類名的話還需要自行匯入,按 Alt + Entry 即可
uj5u.com熱心網友回復:
第一種方式:左上角File->Setting->Maven->Importing
第二種方式:直接針對你的專案點這個重繪按鈕
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/112024.html
標籤:Java SE
下一篇:秒殺java人員神器
