1

In order to make Eclipse's content assist more like Intellij's, I changed the "auto activation triggers" setting to pop up the content assist window whenever I type, as mentioned in this question.

However, now whenever I press Space it inserts the content assist suggestion, even though I wanted to type a space.

Is there a way to make eclipse insert the suggestion only when I press Enter, not when I press space?

eeze
  • 608
  • 1
  • 6
  • 23

3 Answers3

1

There is no way to control this. Open a feature request in Bugzilla: https://bugs.eclipse.org .

nitind
  • 19,089
  • 4
  • 34
  • 43
1

In Preferences>>Java>>Editor>>Content Assist, select Disable insertion triggers except 'Enter'. This handles the space bar issue.

You'll still get inserts sometimes, when there is only one proposal. I lived with this for a while, but I needed to disable it so I could use content assist in a plug-in to only provide suggestions.

You can turn this off by disabling Insert Single Proposals Automatically in the same menu.

0

Below image shows how can you bind the key to Content Assist command.

Mapping the Keys

Ashraff Ali Wahab
  • 1,088
  • 9
  • 19
  • Sorry, this is not what I want. I want to change the key that actually *inserts* the suggestion, not the key to trigger content assist – eeze Aug 20 '18 at 01:13