IDEA?一直scanning?files?to?index的四種完美解決方法(VIP典藏版)
第四種方法摸索研究后得出,親測好用!
一、問題描述
- 長時間/重復(fù)性的scanning files to index
- scanning files to index :掃描文件建立索引
scanning files to index 掃描文件建立索引
二、解決方法
1、File -> Invalidate Caches / Restart


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

3、將掃描的文件夾排除在建立索引的范圍之外,即將xxx文件夾標(biāo)記為Excluded。

4、更改Edit Configurations和idea配置路徑
a、一直掃描很長時間,點擊Edit Configurations,update classes and resources更改為Do nothing。


b、會發(fā)現(xiàn)掃描時間很短,但是還會一直重復(fù)掃描
c、更改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心酸歷程:
- 重啟idea,重裝idea,重啟電腦,kill idea進程都不好使
- 重新clone的代碼一樣的問題,所以大概率是配置的問題
- 配置文件刪掉一樣不好使,可能是需要刷新加載配置文件
- 不重啟的情況下(重啟也不一定好用),更改idea配置路徑即可起到刷新的效果,或者嘗試放開、注掉配置文件,再或者拿其他人的配置文件直接覆蓋...
- 更改完畢后,關(guān)閉idea,任務(wù)管理器殺死進程,重新啟動
- 發(fā)現(xiàn)update完畢后就不會重復(fù)掃描建立索引了
5、項目文件過多
項目文件過多的情況會創(chuàng)建索引就會很慢,所以可以把文件數(shù)量很大的目錄排除創(chuàng)建索引的范圍就可以了。借圖哈。

到此這篇關(guān)于IDEA 一直scanning files to index的四種完美解決方法(VIP典藏版)的文章就介紹到這了,更多相關(guān)idea 一直scanning files to index內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
Springboot swagger配置過程詳解(idea社區(qū)版2023.1.4+apache-maven-3
這篇文章主要介紹了Springboot-swagger配置(idea社區(qū)版2023.1.4+apache-maven-3.9.3-bin),本文給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2023-07-07
SpringBoot中利用MyBatis進行數(shù)據(jù)操作的示例
這篇文章主要介紹了SpringBoot中利用MyBatis進行數(shù)據(jù)操作,小編覺得挺不錯的,現(xiàn)在分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2018-09-09
SpringBoot集成Redisson實現(xiàn)分布式鎖的示例代碼
本文介紹了使用Redisson實現(xiàn)分布式鎖以解決并發(fā)預(yù)約號源超賣問題,首先添加Redisson依賴并配置RedissonClient,接著在預(yù)約服務(wù)中引入分布式鎖,并自定義扣減號源方法,最后總結(jié)了分布式鎖的實現(xiàn)原理,包括鎖粒度、鎖超時、可重入性和WatchDog機制,需要的朋友可以參考下2026-04-04

