I've switched from Eclipse to IntelliJ and there is something which I couldn't find yet nor google:
How to get the autocomplete to replace the name of the function? In Eclipse, it would be the ctrl+enter functionality.
For example,
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();
So obviously what I wanted is to replace the setAmount()
by setDefaultPassword()
.