dlite922
dlite922

Reputation: 1994

How can I make Intellij IDEA lag less when opening big files?

I have a need to open a 5500 line long code file in Intellij (before you ask, not my code, can't refactor now).

While the file is open the whole IDE becomes sluggish and nothing wants to respond without a delay of 3 seconds. It is quite annoying to debug like this.

Is there a specific tune geared towards improving it's handling of super large files? I mean Excel can open 65000 row file, why can't IntelliJ handle 10% of that?

Upvotes: 1

Views: 2765

Answers (1)

Andrey
Andrey

Reputation: 16401

Allocate more memory to IDEA process by setting bigger -Xmx value in .vmoptions file (via Help | Edit Custom VM Options action). Also you can mark the file as a plain text for IDE not to analyze it, or set highlighting level for this file to just syntax.

Upvotes: 2

Related Questions