idea 一直scanning files to index的四种解决方法(VIP典藏版)

idea 一直scanning files to index的四种解决方法(VIP典藏版)目录方法一、File->InvalidateCaches/Restart方法二、删除C:\Users\xxx\.IntelliJIdea2018.2\system文件夹方法三、将扫描的文件夹排除在建立索引的范围之外,即将xxx文件夹标记为Excluded。方法四、更改EditConfigurations和idea配置路径第四种方法摸索研究后得出,亲测好用!…………

IDEA总结100篇(VIP典藏版2022)

目录

问题描述:

方法一、File -> Invalidate Caches / Restart

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

方法三、将扫描的文件夹排除在建立索引的范围之外,即将xxx文件夹标记为Excluded。

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

方法五、项目文件过多


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

idea 一直scanning files to index的四种解决方法(VIP典藏版)

问题描述:

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

方法一、File -> Invalidate Caches / Restart

idea 一直scanning files to index的四种解决方法(VIP典藏版)

idea 一直scanning files to index的四种解决方法(VIP典藏版)

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

idea 一直scanning files to index的四种解决方法(VIP典藏版)

方法三、将扫描的文件夹排除在建立索引的范围之外,即将xxx文件夹标记为Excluded。

idea 一直scanning files to index的四种解决方法(VIP典藏版)

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

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

idea 一直scanning files to index的四种解决方法(VIP典藏版)

idea 一直scanning files to index的四种解决方法(VIP典藏版)

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. 重新clone的代码一样的问题,所以大概率是配置的问题
  3. 配置文件删掉一样不好使,可能是需要刷新加载配置文件
  4. 不重启的情况下(重启也不一定好用),更改idea配置路径即可起到刷新的效果,或者尝试放开、注掉配置文件,再或者拿其他人的配置文件直接覆盖…
  5. 更改完毕后,关闭idea,任务管理器杀死进程,重新启动
  6. 发现update完毕后就不会重复扫描建立索引了

idea 一直scanning files to index的四种解决方法(VIP典藏版)

方法五、项目文件过多

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

idea 一直scanning files to index的四种解决方法(VIP典藏版)

收藏点赞加关注,遇到问题不迷路!

点赞关注加收藏,工作撸码不迷茫!


今天的文章idea 一直scanning files to index的四种解决方法(VIP典藏版)分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/5653.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注