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:

enter image description here

... , then...

enter image description here


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -