有没有办法让 Netbeans 中的代码自动完成工作 [英] Is there a way to make code completion in Netbeans work automatically
问题描述
在 Netbeans 中编码 java 时,我必须一直按 CTRL + 空格才能显示代码完成.是否有任何可能的方法或插件可以让 Netbeans 在我输入时显示代码完成,而不会导致 CTRL + 空格.
While coding java in Netbeans, I have to keep pressing CTRL + space to show code completion. Is there any possible way or plugin to make Netbeans show code completion as I type without resulting to CTRL + space.
大多数现代 IDE 的这个选项都可以正常工作,我想知道为什么在 Netbeans 中会这样,尽管 Netbeans 是一个很好的 IDE.
Most of the modern IDE's have this option working fine, I wonder why in Netbeans it is like that, despite that Netbeans is a good IDE.
推荐答案
工具 -> 选项 -> 编辑器 -> 代码补全
Tools -> Options -> Editor -> Code Completion
然后勾选自动弹出完成窗口"
Then check "Auto Popup Completion Window"
您还可以在此处自定义 Java 选项:
You can also customize the options for Java there:
这篇关于有没有办法让 Netbeans 中的代码自动完成工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!