Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse keeps jumping to the start of the document

I have been using Eclipse for some weeks now and I start getting used to it.

However, one thing really annoys me:
When editing JavaScript (I didn't try any other language yet), the editor window keeps jumping to the start of the document I am editing.

This mostly happens when the code currently contains syntax errors and mostly while / after deleting lines.
Especially constructs like { = and sometimes unterminated strings / comments seem to cause this problem.

When it happens, only the view scrolls to the top of the document - the cursor stays where it was before the "jump" occurred.

Anyone having an idea on how to fix this?

like image 565
Matthias Avatar asked Jun 28 '11 07:06

Matthias


1 Answers

I believe the problem described above is related to this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=318095

The work around is to disable the "Link with Editor" option from the Project Explorer. Which is to say make sure the icon with two arrows facing in opposite directions at the top of the file tree is not enabled. Disabling this option resolved the issue for me.

like image 107
bhspencer Avatar answered Nov 13 '22 10:11

bhspencer