How to enable C autocomplete in Code::Blocks?

为君一笑 提交于 2019-12-23 19:10:56

问题


How to enable C Std lib functions autocomplete in Code::Blocks?


回答1:


Go to Settings > Editor > Code-Completion and Symbols Browser and make sure Disable code-completion isn't checked.




回答2:


Code completion should include member functions autocomplete also. Where as I couldn't see it working. Suppose I want to access the member functions of stringstream class. It is not coming up automatically when I try to access it using the object of stringstream.

e.g,

stringstream str; str. // nothing comes up automatically.

What needs to be configured ?




回答3:


In the latest code blocks 16.01 on windows 10, code completion for c didn't work when a new file was created and configured to be a c file.

However, when a new C project was created using (File/New/ Project/ Console Application), all declared functions and variables worked with the code completetion.

Hope this helps



来源:https://stackoverflow.com/questions/3464900/how-to-enable-c-autocomplete-in-codeblocks

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