Idea introduce variable customize variable name

已回答

When I use idea's introduce variable function, I want to customize the variable name, ex:
Arrays.asList("asd");
press ctrl+alt+v, will get
List<String> strings = Arrays.asList("asd");
but I want
List<String> stringList = Arrays.asList("asd");
how to modify the introduce variable result of the variable name?

0

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.

1

@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 variable default result of the variable name so that I don't need to change it?

0

Not sure it is at all possible in 2019.1. Updating to a more recent version should help.

1

@Arina Efremova

Thanks, i will have try. :)

0

请先登录再写评论。