"Change Signature" to add parameter. how do you not accept suggested name
Answered
In Intellij,open the "Change Signature" refactoring to add a parameter to an existing method.
- Click "Alt+Insert" to add a new blank parameter.
- Enter the parameter's class name in the Type field
- Tab to the Name field
- Type the variable name you want, but if it does not match one of the AutoComplete suggestions what do you do?
Currently if I want to use a variable name other than one of the suggestions, I have to hit Esc which "closes" the line, meaning that I then have to hit F2 followed by Tab to get the focus into the Default Value field. Is there a way to use what I've typed into the Name field (instead of an AutoComplete suggestion) without "closing" the line?
Please sign in to leave a comment.
Do you invoke Name completion using Ctrl+Space and want to cancel it?