IntelliJ Idea 12 - Java file is too large for edit

2020-08-09 11:40发布

问题:

Getting "file x.java is too large for IntelliJ Idea editor" after trying to open a web service stub class that is generated for Axis 2.

I saw a post associated about this issue which says change the

idea.max.intellisense.filesize=2500

in idea.properties.

But this trick didn't work for me despite I increased the value enough. Also I tried to comment out it for disabling this feature; but it didn't work too..

回答1:

Nowadays the setting

idea.max.intellisense.filesize=50000

works perfectly for me and lets me open files of up to 50M size.



回答2:

My issue is that the file was > 20mb. See this link: http://youtrack.jetbrains.com/issue/IDEA-85045



回答3:

If you just want IntelliJ to open the full file instead of truncating it, use this:

idea.max.content.load.filesize=500000 #500MB