IDEA中file size exceeds configured limit问题

Intellij IDEA中file size exceeds configured limit解决
把Hadoop源码导入IDEA中后,其中有个ClientNamenodeProtocolProtos文件代码高达82997行,IDEA直接就不把它当java类看了,报file size exceeds configured limit错误。

原因:

    IDEA对能关联的文件大小做了限制,主要是为了保护内存,默认值为2500kb,对于一般的java文件也够用了,只是这里我用protocbuf生成的java文件过大,达到3M多。

解决办法如下:
你可以尝试修改intellij IDE安装目录下的bin/idea.properties, 将其中的idea.max.intellisense.filesize=2500
改成大一些,比如
idea.max.intellisense.filesize=99999
然后重启问题解决。

 

posted @ 2021-08-08 22:57  SailorG  阅读(397)  评论(0编辑  收藏  举报