类文件无法被引用,且显示为java文件处理方案

IDEA提示:The file size (3.48MB) exceeds configured limit (244 MB). Code insight features are not available.

错误表现:

1.某个java类确定存在项目中,却在引用处提示找不到该类
2.对应的类文件中提示
the file size(3.40M) exceeds configured limit(2.56M).Code insight features are not available
3.对应的文件显示为 **.java文件,没有显示该文件是一个Class文件

原因:

该文件超过IDEA感知的最大文件大小

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#---------------------------------------------------------------------
idea.max.intellisense.filesize=2500

解决方案:

1.修改IDEA配置文件中的配置文件,重启后生效

路径:…\IntelliJ IDEA \bin\idea.properties

修改内容:idea.max.intellisense.filesize

2.在IDEA开发页面,点击help→Edit Custom Properties,会在…\IntelliJIdea2018.2\config目录下创建idea.properties文件,文件内容中设置idea.max.intellisense.filesize

你可能感兴趣的:(日常改BUG)