I remember from some time ago that Eclipse had auto-complete when you type, and now I can only get it when pressing Ctrl + Space. I already checked and don't have any unresolved dependencies, I can see all the auto-complete choices when pressing Ctrl + Space, but that's not something I like to do every-time... Can someone point me in the direction to get auto-complete back? (Using CDT C++)
-
1I have a similar problem where I don't get autocomplete when pressing CTRL+Space (Eclipse Juno CDT on OSX) – kierans Jul 26 '12 at 11:11
-
I'm have a similar problem, I tried many "solutions" like adding every path in C/C++ General > Paths and Symbols, but the problem is still here. Did you found any solution for this? – ForceMagic Mar 17 '13 at 05:11
3 Answers
At some point recently (not sure but since March 2013?) my Eclipse CDT
stopped auto completion. I figured out that at Editor
->Content Assist
->Advanced
checking Parsing-based Proposals
lets auto completion work on my machine.
Ubuntu 12.10, Eclipse 4.2.2, CDT 8.1.2
This snapshot shows Task-Focused
, which I don't see on my another Eclipse
instance. In that case I just checked Parsing-based Proposals
and completion still works.

- 3,551
- 6
- 39
- 61
-
2In kepler this menu is under Window > Preferences > C/C++ > Editor etc – Mr_and_Mrs_D Mar 12 '14 at 17:32
-
How do i get to that specific menu in Eclipse. Ive been looking for like the last 5 or 10 minutes and every menu i open is labelled properties. – Zachary Kraus Mar 22 '14 at 20:38
-
4I still need to press `Ctrl+Space` to get auto completion window . is there any way to achieve auto completion without pressing these keys ? – sonus21 Mar 29 '15 at 06:09
-
Does not work for me. I do get some proposals, but nothing from the standard libraries. std::string s g gives not autocomplete.. – user3599803 Nov 25 '16 at 00:09
-
1My problem is more complicated it doesn't work for me at all even when I press ctrl + space it doesn't show me anything – Yousef Saber May 19 '18 at 13:38
This question is so valid even in 2018 with eclipse photon.
1) Go to Window > Prefrences > C/C++ > Editor > Content Assist > Advanced.
2) Check "Parsing-based proposal(Task-focused)".
3) Bind a key now by pressing "Ctrl + Space".

- 813
- 11
- 13
-
This works, but in general something strange happened with keyboard in Photon: not only ctrl+space is not working in CDT, but also ctrl+right(left)arrow etc although I can see its binding in Eclipse menu. – Vit Aug 12 '18 at 21:05
-
1What operating system are you using? It works good for me on Ubuntu. – Amit Kumar Sep 29 '18 at 19:11
-
I tried Photon on both Ubuntu 16.04 and W10 on completely different PC -- neither are stable. Also it is heisenbug: sometimes it exist, sometimes all works good with no change in the settings, also I see no correlation with system restart. – Vit Sep 30 '18 at 10:41
-
I have Eclipse CDT version 2019-06 (4.12.0) on KDE Plasma 5.16.4 Is there a way to "auto-invoke" the content assistant (Visual Studio style, without any shortcut(s)) ? – Roey Aug 02 '19 at 12:07
-
2@Roey, I do not think eclipse CDT supports visual studio style auto-completion yet. But if you need it for java, it is straight forward to achieve that. You can refer to this video of mine on youtube; https://www.youtube.com/watch?v=Q83wCCxpqnI – Amit Kumar Aug 06 '19 at 08:15
-
@AmitKr great idea & nice vid. Yeah it's pitty Eclipse CDT doesn't support full auto-invoke I don't get this "semi-automatic" (manual invoke) mechanism . I use VS Code instead. TNX – Roey Aug 06 '19 at 12:22
-
This is still a problem in version 2020-03. In addition when registering the key binding "when" must be changed to "In Windows". This was set to the task editor only in my case. – k_o_ May 11 '20 at 03:12
I had a problem with Eclipse Juno (OSX Java "1.6.0_33") where the autocomplete (and save key binding) wasn't working properly. Googling I found this: Eclipse JUNO doesn't start
Updating my Mercurial Plugin to the latest (1.9.1) fixed both these issues for me.
Very weird.