java 无需大写的 IntelliJ IDEA 12 代码完成
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14127381/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
IntelliJ IDEA 12 code completion without capitalisation
提问by Games Brainiac
In eclipse 4.2, I can just type:
在 eclipse 4.2 中,我可以输入:
joptionpane
and press CTRL+SPACEand it will turn into:
然后按CTRL+SPACE,它会变成:
JOptionPane
Is there any way to do the same with intelliJ IDEA? I have tried pressing CTRL+SPACE, and ALT+/. But, for some reason it just does not work.
有什么办法可以用 intelliJ IDEA 做同样的事情吗?我试过按CTRL+SPACE和ALT+/。但是,由于某种原因,它不起作用。
I would be most grateful if anyone could show me how to do this.
如果有人能告诉我如何做到这一点,我将不胜感激。
I am just trying out version 12 of IDEA, since some of my friends told me that it was a better IDE and had better code completion (their opinions).
我只是在试用 IDEA 的 12 版,因为我的一些朋友告诉我它是一个更好的 IDE,并且有更好的代码完成(他们的意见)。
回答by dunni
You can disable the case sensitivity of the code completion in the settings menu:
您可以在设置菜单中禁用代码完成的区分大小写:
File -> Settings -> Editor -> Code completion -> Case sensitive completion
文件 -> 设置 -> 编辑器 -> 代码完成 -> 区分大小写
If you then type "jo" and hit TAB, it will expand to JOptionPane.
如果然后键入“jo”并按 TAB,它将扩展为 JOptionPane。
Updated screenshot for IntelliJ 15
IntelliJ 15 的更新截图
Update screenshot for IntelliJ 2018
IntelliJ 2018 更新截图
回答by Peter Lawrey
IDEA is very senstive to capitalisation so I doubt ti will ignore it. You can type JOP+<tab>
and it will give you JOptionPane.
IDEA 对大小写非常敏感,所以我怀疑 ti 会忽略它。你可以输入JOP+<tab>
,它会给你 JOptionPane。