I've just moved from Eclipse to android studio. One of my most used shortcut is ctrl-2 L, which will automatically assign a variable with a name and import the necessary class.
new View();
and press Ctrl-2 L, which results in:
View view = new View();
Is there a way to do it in android studio?