代码块自动完成/调用提示不适用于C标准库功能 [英] codeblocks autocomplete / calltips not working for C standard library functions

查看:95
本文介绍了代码块自动完成/调用提示不适用于C标准库功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正试图开始使用code :: blocks进行一些C编程,只是为了学习。我希望使用codecompletion / calltips功能(例如,键入 printf时,它会弹出一个方便的下拉框,显示参数。

I'm trying to start using code::blocks to do some C programming in just to learn. I was hoping to use the codecompletion / calltips feature (e.g. when typing say "printf" it popsup a handy dropdown box that shows the parameters.

我做了一个新的项目,并在该项目中创建一个名为 hello.c的新文件。

I've made a new project and a new file in that project called "hello.c"

#include <stdio.h>
int main(){
  int test=0;
  printf("%d",test);
  return 0;
}

,但是在键入prin-的过程中途显示-仅显示 priority_queue和private,没有printf函数,按ctrl-j,ctrl时无任何反应-space,alt-shift-space,ctrl-n或p均无效。我尝试重新解析该项目。最初安装的是13.12版本,因为这是Ubuntu(14.04.4LTS)的版本,但是后来我通过装了1.16版apt-get ppas。该版本也不起作用。我尝试禁用并重新启用代码完成插件,并且确保在settings-> editor->下确保选中了代码完成框。

but midway through typing prin---only "priority_queue and private" show up, no printf functions, and nothing happens when pressing ctrl-j, ctrl-space, alt-shift-space, ctrl-n or p nothing works. I've tried reparsing the project. I initially had 13.12 version installed because that's what Ubuntu (14.04.4LTS) had but then I installed version 16.01 by mucking with the apt-get ppas. That version also doesn't work. I've tried disabling and reenabling the code completion plugin and I've made sure under settings->editor-> that code completion box is checked.

我在做什么在这里错了吗?任何帮助将不胜感激。非常感谢!

What am I doing wrong here? Any help would be very appreciated. Thanks so much!

推荐答案

新的Code :: Blocks IDE在Ubuntu上还不够完善。您可以尝试重新安装它。如果不起作用,请尝试恢复为13.12。

The new Code::Blocks IDE is not so polished on Ubuntu yet. You can try reinstalling it. And if it didn't work try reverting to 13.12.

这篇关于代码块自动完成/调用提示不适用于C标准库功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆