netbeans c 自动弹出代码完成 [英] netbeans c auto popup code completion
问题描述
我使用 Netbeans 7 编写 C.
I'm using Netbeans 7 to program C.
想象一下,如果我输入 prin
和 CTRL+SPACE
,一个弹出窗口会出现 printf
建议.
Imagine if I type prin
and CTRL+SPACE
a popup window will come up with the printf
suggestion.
如何让这个弹出窗口在我输入时显示?我不想使用CTRL+SPACE
.
How can I make this popup to show as I type? I don't want to use CTRL+SPACE
.
推荐答案
如果您拥有带有 C/C++ 的 Netbeans插件安装完毕,可以进入Tools ->选项 ->编辑器->代码补全
.
If you have Netbeans with the C/C++ plugin installed, you can go to Tools -> Options -> Editor -> Code Completion
.
将语言下拉菜单切换为 C/C++.然后,您可以将 C/C++ 标识符的自动弹出触发器修改为如下所示:
Switch the Language drop down to C/C++. You can then modify the Auto Popup Triggers for C/C++ Identifiers to something like this:
.;->;.*;->*;::;new ; ;a;b;c;d;e;f;g;h;i;j;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y;z;
一旦输入上述任何一种模式,这将导致自动完成窗口弹出.在 Netbeans 8.0.2 中测试对我来说就像一个魅力.
This will cause the auto completion window to popup once any of the above patterns are entered. Tested in Netbeans 8.0.2 works like a charm for me.
这篇关于netbeans c 自动弹出代码完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!