Eclipse CDT Autocomplete not working

假装没事ソ 提交于 2019-12-29 02:55:07

问题


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


回答1:


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.




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/11399719/eclipse-cdt-autocomplete-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!