sbail95
sbail95

Reputation: 294

Eclipse IDE Auto complete bug skipping line and moving cursor to middle of the next line

How do you fix Eclipse IDE to stop skipping a line and jumping into the middle of the next line every time you use ctrl space and enter to autocomplete?

Every time I hit enter to choose an autocomplete option the cursor leaves the line and ends up one tab amount of space into the next line even if that means its in the middle of a line of existing code! Another weird thing is that a light green line appease beside it!

Upvotes: 2

Views: 673

Answers (1)

Hawk
Hawk

Reputation: 327

It's a little to late to answer this however if someone is facing the same problem, the solution is below

Window -> Preferences -> Java -> Editor -> Content Assist

In the Insertion tab, choose Completion inserts instead of Completion Overwrites.

Upvotes: 4

Related Questions