Assign to new local variable shortcut (ctrl-2 L) in android studio
You Can See Shortcut Key in Refactor -> Extract Menu
Mac Extract Variable Use Below Shortcut:
1- ⌥+⌘+V for local variable
2- ⌥+⌘+F for class/field variable
3- ⌥+⌘+C for constant
I think you must use Control+Alt key for Windows
Well this is pretty old but here is what I did just now.
I wrote
new View()
no column and space and just typed
new View().var
and pressed CTRL+ [SPACE]
here's what appears:
and as I press RETURN
on the suggestion bubble...
Voila!!ð
Discovered this in a recent session on flutter using Intelli-J and since Android Studio is based on the same IDE so, it worked!