赞
踩
目录
1、File -> Invalidate Caches / Restart
2、删除C:\Users\xxx\.IntelliJIdea2018.2\system文件夹
3、将扫描的文件夹排除在建立索引的范围之外,即将xxx文件夹标记为Excluded。
4、更改Edit Configurations和idea配置路径

第四种方法摸索研究后得出,亲测好用!

- 长时间/重复性的scanning files to index
- scanning files to index :扫描文件建立索引
scanning files to index 扫描文件建立索引




a、一直扫描很长时间,点击Edit Configurations,update classes and resources更改为Do nothing。


b、会发现扫描时间很短,但是还会一直重复扫描
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
心酸历程:

项目文件过多的情况会创建索引就会很慢,所以可以把文件数量很大的目录排除创建索引的范围就可以了。借图哈。


收藏点赞加关注,遇到问题不迷路!
点赞关注加收藏,工作撸码不迷茫!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。