IntelliJ不能显示大文件?

5
我的文本文件大小为1.58G,我的IntelliJ自定义VM选项已设置为“-Xmx4G”。为什么它会显示这个?
"The file is too large; 1.58G. Showing a read-only of the first 2.56M".
1个回答

16

idea.properties文件包含IntelliJ IDEA可处理的文件的默认限制:

#---------------------------------------------------------------------
# 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

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE is able to open.
#---------------------------------------------------------------------
idea.max.content.load.filesize=20000

这些可以使用帮助| 编辑自定义属性进行更改。


这是什么意思?“文件大小(35B)超过了配置限制(1734967296B)。代码洞察功能不可用。” - user697911
我有这两个:idea.max.intellisense.filesize = 2500000和idea.max.content.load.filesize = 2000000。 - user697911
1
尝试使用idea.max.content.load.filesize=0来使用最大可能的值。 - CrazyCoder
更新完这些需不需要重启 IDEA? - MattG
3
@MattG 是的,需要重新启动IDE。 - CrazyCoder

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接