IDEA报错:File size exceeds configured limit

原文地址:https://my.oschina.net/shipley/blog/510762 

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

原因:

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

    其设置在...JetBrains\IntelliJ IDEA Community Edition 14.1.4\bin 目录下的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多,解决问题。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值