码迷,mamicode.com
首页 > 其他好文 > 详细

[Intellij IDEA]File size exceeds configured limit

时间:2015-09-24 17:51:39      阅读:309      评论:0      收藏:0      [点我收藏+]

标签:

    这两天尝试使用 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多,解决问题。



[Intellij IDEA]File size exceeds configured limit

标签:

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!