我已经从 Eclipse 切换到 IntelliJ,但有一些东西我还没有找到,也没有在 google 上找到:
How to get the autocomplete to replace the name of the function?
In Eclipse, it would be the ctrl+enter functionality.
例如,
userController.setAmount();
suppose I would like not to call the setAmount()
but a setDefaultPassword()
, I place my caret after the set
then ctrl+space to autocomplete, the setDefaultPassword()
shows up but if I press enter, it won't replace Amount()
and I'll end up with
userController.setDefaultPassword();Amount();
显然我想要的是替换setAmount()
by setDefaultPassword()
.
按 Tab 而不是 Enter 来选择项目,标识符将被替换。也可以看看http://jetbrains.dzone.com/articles/top-20-code-completions-in-intellij-idea http://jetbrains.dzone.com/articles/top-20-code-completions-in-intellij-idea
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)