2015-06-05 72 views

回答

8

選擇Analyze > Run Inspection by Name...,類型unused declaration並與確認輸入。當搜索完成後,從結果選項卡中選擇Unused declaration,點擊右鍵,選擇Safe delete

enter image description here

2

那樣簡單,只要按下Ctrl + Alt + Shift + I型和未使用的聲明。 您也可以在刪除其他未使用的資源時使用它,例如按ctrl + alt + shift + I鍵入未使用的資源。搜索結束後,從結果選項卡中選擇未使用的聲明,右鍵單擊並選擇安全刪除