1. 程式人生 > >解決Eclipse按下Ctrl+滑鼠左鍵,無法轉到類、變數或者方法問題

解決Eclipse按下Ctrl+滑鼠左鍵,無法轉到類、變數或者方法問題

Eclipse專案中,按下Ctrl鍵後,滑鼠移動到類、方法後可以顯示高亮連結,但點選後無法跳轉過去。網上查了很多方法都沒有解決

最後無意在國外的網站上找到了解決方法,出處:

https://stackoverflow.com/questions/16354028/eclipse-type-hierarchy-not-always-working

原文:

I had this same problem and fixed it by deleting the Eclipse index cache files located in .metadata/.plugins/org.eclipse.jdt.core. Delete all .index files and savedIndexNames.txt. Do this while Eclipse is not running and then restart. This fixed the issue for me.

即先關掉Eclipse,然後將.metadata/.plugins/org.eclipse.jdt.core資料夾中的.index檔案和savedIndexNames.txt檔案清理掉,最後重新啟動Eclipse