Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse CDT Autocomplete not working

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++)

like image 976
Délisson Junio Avatar asked Jul 09 '12 16:07

Délisson Junio


2 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

enter image description here

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.

like image 160
IsaacS Avatar answered Sep 19 '22 16:09

IsaacS


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".

enter image description here

like image 41
AmitKumar Avatar answered Sep 18 '22 16:09

AmitKumar