Idea introduce variable customize variable name
Answered
When I use idea's introduce variable function, I want to customize the variable name, ex:Arrays.asList("asd");
press ctrl+alt+v, will getList<String> strings = Arrays.asList("asd");
but I wantList<String> stringList = Arrays.asList("asd");
how to modify the introduce variable result of the variable name?
Please sign in to leave a comment.
Hi Luffybigbang
What version of the IDE are you using?
Depending on your refactoring settings, you should be getting either a modal dialog or a popup that allows you to change the variable's name.
@Arina Efremova
Thanks,i'm using 2019.1 idea, seems doesn't have code editing setting
and now I must change to the variable name everytime by my self
how to modify the
introduce variabledefault result of the variable name so that I don't need to change it?Not sure it is at all possible in 2019.1. Updating to a more recent version should help.
@Arina Efremova
Thanks, i will have try. :)