idea 一直scanning files to index的四種解決方法【idea 一直scanning files to index的四種解決方法】


問題描述:

  • 長時間/重復性的scanning files to index
  • scanning files to index :掃描文件建立索引

方法一、File -> Invalidate Caches / Restart

方法二、刪除C:\Users\xxx.IntelliJIdea2018.2\system文件夾

方法三、將掃描的文件夾排除在建立索引的范圍之外,即將xxx文件夾標記為Excluded。

方法四、更改Edit Configurations和idea配置路徑

1、一直掃描很長時間,點擊Edit Configurations,update classes and resources更改為Do nothing。

2、會發現掃描時間很短,但是還會一直重復掃描

3、更改idea配置路徑 或 直接注掉三行注釋 達到刷新目的

xx\bin\idea.properties


idea.config.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\config
idea.system.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\system
idea.plugins.path=D:\Java\idea\IntelliJ IDEA 2018.2.4\01edit\plugins
 
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE config folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.config.path=${user.home}/.IntelliJIdea/config
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
 
#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to user installed plugins folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.plugins.path=${idea.config.path}/plugins

過程:

  1. 重啟idea,重裝idea,關機重啟,kill idea進程都不好使
  2. 重新download的代碼一樣的問題,所以一定是配置的問題
  3. 配置文件刪掉一樣不好使,可能是需要刷新加載配置文件
  4. 不重啟的情況下(重啟也不一定好用),更改idea配置路徑即可起到刷新的效果,或者嘗試放開、注掉配置文件,再或者拿同事好用的配置文件直接覆蓋...
  5. 更改完畢后,關閉idea,任務管理器殺死進程,重新啟動
  6. 發現update完畢后就不會重復掃描建立索引了

方法五、項目文件過多

項目文件過多的情況會創建索引就會很慢,所以可以把文件數量很大的目錄排除創建索引的范圍就可以了。借圖。

有用請點贊,養成良好習慣!

疑問、交流、鼓勵請留言!
————————————————
版權聲明:本文為CSDN博主「三太子·哪吒」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/libusi001/article/details/102800605


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM