[Intellij IDEA]File size exceeds configured limit

时间:2022-04-27
本文章向大家介绍[Intellij IDEA]File size exceeds configured limit,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。

    这两天尝试使用 IDEA, 发现一个问题File size exceeds configured limit (2560000). Code insight features not available.

原因:

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

    其设置在...JetBrainsIntelliJ IDEA Community Edition 14.1.4bin 目录下的idea.properties文件。

#---------------------------------------------------------------------
# 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
idea.max.intellisense.filesize=5000

    默认值为2500kb

解决方法:

            这里我将其修改为5000kb,我的最大文件大小为3M多,解决问题。