Eclipse autocomplete not working

Eclipse autocomplete now does not work, and I searched the clock, but I could not find the answer to solve it. I did not use it for a long time, then the first thing after opening it was to install SWT and windows builder, although I had a swing. I mean, this is possible due to some kind of conflict caused by swt and swing (I read something about the conflict, but I don't know if this is possible).

The strange thing is that it does not show anything when I press Ctrl + space, but when I go to Edit-> Content Assist β†’ Default (it says Ctrl + Space next to it), it shows what needs to be shown / works as desired.

public class Dsada { String sssss; public Dsada(){ sss //pressing ctrl+space is not working,Edit->ContentAssist->Default works fine } } 

The solution is to not gallop / disable some things in the Windows-> Settings β†’ ...-> Content Assistant-> Advanced section. I checked that "ctrl + space" is captured by some other thing that is not and checks the keyboard language, which is English (those offered by mkyong ).

I read something about the error but I could not understand. I tried to remove eclipse and install it again, but probably some parameters remained in the machine, so this did not work.

Thanks in advance,

+7
java eclipse autocomplete content-assist
source share
7 answers

The hotkey combination ctrl+space may contradict other settings in the system if you use windows.

Try changing this combination, for example, alt+/ , I always use it the first time I knew an eclipse. It works well.

Hope this works for you.

+15
source share

I had the same problem on Ubuntu 14.04. The problem for me was that ibus used Ctrl+Space as a shortcut. I solved this by running the ibus-setup program and highlighting the shortcut on something else than Ctrl+Space .

+2
source share

Recently, I also ran into this problem. When I install an unoccupied version of eclipse. By (1) deleting the corresponding class, (2) restoring the default appearance and (3) restarting eclipse, solved the problem for me. Hope this helps someone.

+1
source share
0
source share

I am having a problem with a hotkey using Ctrl + Space. I tried to fix the problem first Windows-> Settings β†’ ...-> Content Assist-> Advanced and selected Select the offer types contained in the default content support list:

  • Other Java suggestions,
  • List item
  • SWT Template Suggestions
  • Template Suggestions
  • Typical offers

but it didn’t help.

So I tried a different solution. There would be several languages ​​on your computer that could sit on the Ctrl command. To solve this problem, go to Control Panel β†’ Region and Language β†’ Keyboards and Languages ​​(tab), and then change the keyboard .

You will see a list of installed languages ​​- delete everything that you do not need (click on the language, and then click on the "Delete" button) until you have only the one you want to leave. This fixed it for me, but you can also check the Advanced Key Settings tab to make sure that none of the keyboard shortcuts that are installed contain Ctrl-Space.

Once you do this, Ctrl-Space should work beautifully !!!!

0
source share

I ran into the same problem. If you use OS X Eclipse Ctrl + Space, the shortcut may interfere with OS X's β€œSelect previous input source” using the default Ctrl + Space shortcut.

You need System Presentations / Keyboard / Shortcuts / Input Source and uncheck "Select previous input source" or change the shortcut to something else. Eclipse should work after that even without a reboot.

0
source share

This is repeated for me. I am using Eclipse 2019-03 on Windows 10. The following steps work for my case and do not require a reboot.

Window-> Preferences β†’ Java-> Editor-> Content Assist-> Advanced

The following options were not selected, and when I set them, autocomplete worked as before. No reboot required.

  1. Atypical Java Suggestions
  2. Java sentences
  3. Java type suggestions
  4. Java Suggestions (task-focused)

I do not know what causes this, but this only happens after I have created a new project. Usually not. It’s just not so often that I notice a pattern to continue. Obviously this problem occurs for a variety of reasons, so check out the other answers to make sure they match your case.

0
source share

All Articles