Speed ​​up Eclipse when editing files with 2000+ lines

When I edit large files in eclipse (about 2000+ lines), editing the file becomes very slow. The text will appear a couple of seconds after entering it.

I tried it in an editor, for example, in notepad ++, and it handles the file perfectly.

I considered this issue to expedite the eclipse, but I had no luck with them. How can you speed up Eclipse?

Any thoughts on this are really appreciated, as I know that some of my friends are also having this problem.

+4
source share
2 answers

The problem is the code folding function. If you really don't need to bend the code, turn it off.

Window-> Settings-> PHP-Editor-> Code Folding and unchecking the function Code folding.

+4
source

Instead of trying to speed up Eclipse, it would be better to stylistically rip your 2000+ file into several small files. If this file is a Java class, for example, you probably have a God object, and you still need to split it.

Assuming this is a Java file, the reason it is slow while Notepad ++ is fast is because Notepad ++ just shows the file. Eclipse compiles, checks the compiler warnings, starts the error search / checkstyle / everything you installed, etc., some of which are time consuming and can take a lot of time in a large file.

-2
source

Source: https://habr.com/ru/post/1381127/


All Articles