IDEA报错:File size exceeds configured limit

小咪咪 2021-09-21 14:04 405阅读 0赞

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

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzI3Mzc4NjIx_size_16_color_FFFFFF_t_70

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

原因:

  1. IDEA对能关联的文件大小做了限制,主要是为了保护内存,默认值为2500kb,对于一般的java文件也够用了,只是这里我用protocbuf生成的java文件过大,达到3M多。
  2. 其设置在...JetBrains\\IntelliJ IDEA Community Edition 14.1.4\\bin 目录下的idea.properties文件。
  3. #---------------------------------------------------------------------
  4. # Maximum file size (kilobytes) IDE should provide code assistance for.
  5. # The larger file is the slower its editor works and higher overall system memory requirements are
  6. # if code assistance is enabled. Remove this property or set to very large number if you need
  7. # code assistance for any files available regardless their size.
  8. #---------------------------------------------------------------------
  9. # idea.max.intellisense.filesize=2500
  10. idea.max.intellisense.filesize=5000
  11. 默认值为2500kb

解决方法:

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

发表评论

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

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

相关阅读