java - In Intellij, how can I get a List on the left hand side when I extract a variable that's an ArrayList? -
as example, if extract variable this:
return new arraylist<crudtestdata<foo>>(); it turn code this:
arraylist<crudtestdata<foo>> list = new arraylist<crudtestdata<foo>>(); return list; how can automatically list on left hand side this?
list<crudtestdata<foo>> list = new arraylist<crudtestdata<foo>>(); return list; theoretically, intellij should know use list instead of collection because method returns list.
on mac, it's shift-tab go editing variable name type, , can use arrows select type want. dropdown shows when first extract variable should show binding:

... , then...

Comments
Post a Comment