Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 738
Flash Avatar asked Apr 14 '14 10:04

Flash


People also ask

What is Code Insight features?

Code insight features include "inspections" and code formatting. I know both those features didn't work on an 8MB XML file I opened until I increased the file size limit.

Where can I find idea properties file?

Locate the idea. properties file in the bin directory in IntelliJ IDEA's installation directory. The default location is C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 10.5. 1/bin.


2 Answers

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 
like image 61
Álvaro González Avatar answered Sep 22 '22 23:09

Álvaro González


This is built from Álvaro González's answer and How to increase IDE memory limit in IntelliJ IDEA on Mac?

Go to Help > Edit Custom Properties

Add:

idea.max.intellisense.filesize=999999 

Restart the IDE.

like image 32
Henry Avatar answered Sep 21 '22 23:09

Henry