The file size (4.14 MB) exceeds configured limit (4.1 MB). Code insight features are not available.

叁歲伎倆 2023-10-03 15:07 109阅读 0赞

问题描述

今天使用 [Intellij IDEA] 打开log文件,提示信息如下:

  1. The file size (4.14 MB) exceeds configured limit (4.1 MB). Code insight features are not available.

IDEA编辑器代码洞察功能不可用,某些文件出现乱码
在这里插入图片描述

问题原因

IDEA对能关联的文件大小做了限制,主要是为了保护内存,默认值为4000kb,对于一般的文件也够用了,有时查看log日志文件,文件超过4000kb。

解决办法

  • 修改目录下的idea.properties文件idea.max.intellisense.filesize 参数
  • 通过IDEA编辑直接打开properties文件
    在这里插入图片描述

修改配置文件一定要重启IDEA编辑器才能生效!

发表评论

表情:
评论列表 (有 0 条评论,109人围观)

还没有评论,来说两句吧...

相关阅读