File size exceeds configured limit (2560000), code insight features not available

Intellij Idea

Intellij Idea Problem Overview


I am trying to work on a large Javascript file in Jetbrains WebStorm 8 and I am getting a message at the top of the editing window that says:

>File size exceeds configured limit (2560000). Code insight features not available.

How can I increase the 'configured limit' to get access to all features?

Intellij Idea Solutions


Solution 1 - Intellij Idea

In IntelliJ 2016 and newer you can change this setting from the Help menu, Edit Custom Properties (as commented by @eggplantbr).

On older versions, there's no GUI to do it. But you can change it if you edit the IntelliJ IDEA Platform Properties file:

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

Solution 2 - Intellij Idea

This is built from Álvaro González's answer and https://stackoverflow.com/questions/13578062/how-to-increase-ide-memory-limit-in-intellij-idea-on-mac/13581526#13581526

Go to Help > Edit Custom Properties

Add:

idea.max.intellisense.filesize=999999

Restart the IDE.

Solution 3 - Intellij Idea

Edit config file for IDEA: IDEA_HOME/bin/idea.properties

# Maximum file size (kilobytes) IDE should provide code assistance for.
idea.max.intellisense.filesize=60000

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

Save and restart IDEA

Solution 4 - Intellij Idea

Go to IDE:

STEP 1: Open the menu item: click on Help then click on Edit Custom Properties

STEP 2: Set the parameter:

idea.max.intellisense.filesize= 999999999

Solution 5 - Intellij Idea

Instructions for changing this settings in latest Jetbrains products

Editing product64.vmoptions didnt worked for me, but editing idea.properties worked ok. Also in order to be able to work with large files you may need to change values for in product64.vmoptions / product.vmoptions for -Xms and -Xmx

Solution 6 - Intellij Idea

To clarify Alvaro's answer, you need to add the -D option to the list of command lines. I'm using PyCharm, but the concept is the same:

pycharm{64,.exe,64.exe}.vmoptions:
<code>
    -server
    -Xms128m
    ...
    -Didea.max.intellisense.filesize=999999 # <--- new line
</code>

Solution 7 - Intellij Idea

For those who don't know where to find the file they're talking about. On my machine (OSX) it is in:

  • PyCharm CE: /Applications/PyCharm CE.app/Contents/bin/idea.properties
  • WebStorm: /Applications/WebStorm.app/Contents/bin/idea.properties

Solution 8 - Intellij Idea

For the 64-bit 2020 version

I tried in vain to find the current location of this file for version 2020. When navigating to Help > Edit Custom Properties a new (empty) file is created at appData/Roaming/JetBrains/IntelliJIdea2020.1/idea.properties. There is no /bin directory as some tutorials suggest. However, neither adding the block from the accepted answer to this file nor adding the same file to /bin resulted in an update to my configuration.

I finally discovered that a reference to the same property exists in appData/Roaming/JetBrains/IntelliJIdea2020.1/idea64.exe.vmoptions. It looks like this:

-Didea.max.intellisense.filesize=3470

I changed it to this, which should be adequate for my needs:

-Didea.max.intellisense.filesize=9999

This strikes me as a bug in this version where the behavior of the menu item doesn't reflect what's needed, but it may also be the case that my particular setup is somehow different than stock. I do have PyCharm and the JDK installed.

Solution 9 - Intellij Idea

PhpStorm 2020

  1. Help -> Edit Custom Properties.
  2. File will open in Editor. Paste the section below to the file.
 #---------------------------------------------------------------------
 # 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
  1. File -> Invalidate / Restart -> Restart

This might not update sometimes and you might need to edit the root idea.properties file.

To edit this file for any version of Idea

  1. Go to application location i.e linux => /opt/PhpStorm[version]/bin
  2. Find file called idea.properties Make backup of file i.e idea.properties.old
  3. Open original with any txt editor.
  4. Find idea.max.intellisense.filesize=
  5. Replace with idea.max.intellisense.filesize=your_required_size i.e idea.max.intellisense.filesize=10480 NB by default this size is in kb
  6. Save and restart the IDE.

Solution 10 - Intellij Idea

Windows default install location for Webstorm:

> C:\Program Files\JetBrains\WebStorm 2019.1.3\bin\idea.properties

I went x4 default for intellisense and x5 for file size

(my business workstation is a beast though: 8th gen i7, 32Gb RAM, NVMe PCIE3.0x4 SDD, gloat, etc, gloat, etc)

#---------------------------------------------------------------------
# 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=10000
    
    #---------------------------------------------------------------------
    # Maximum file size (kilobytes) IDE is able to open.
    #--------------------------------------------------------------------- 

idea.max.content.load.filesize=100000

Solution 11 - Intellij Idea

Changing the above options form Help menu didn't work for me. You have edit idea.properties file and change to some large no.

MAC: /Applications/<Android studio>.app/Contents/bin[Open App contents] 

Idea.max.intellisense.filesize=999999 

WINDOWS: IDE_HOME\bin\idea.properties

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionFlashView Question on Stackoverflow
Solution 1 - Intellij IdeaÁlvaro GonzálezView Answer on Stackoverflow
Solution 2 - Intellij IdeaHenryView Answer on Stackoverflow
Solution 3 - Intellij Ideasendon1982View Answer on Stackoverflow
Solution 4 - Intellij IdeaEmad AghayiView Answer on Stackoverflow
Solution 5 - Intellij IdeaAndrew ZhilinView Answer on Stackoverflow
Solution 6 - Intellij IdeasqueegeeView Answer on Stackoverflow
Solution 7 - Intellij IdeajfunkView Answer on Stackoverflow
Solution 8 - Intellij IdeaisherwoodView Answer on Stackoverflow
Solution 9 - Intellij IdeaBreimerView Answer on Stackoverflow
Solution 10 - Intellij Ideajenson-button-eventView Answer on Stackoverflow
Solution 11 - Intellij IdeaFaheemView Answer on Stackoverflow