Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: Enum auto-completion of switch case

Is there any auto-complete shortcut or code-generation command in Android Studio that creates a stub

switch (myEnum){

}

statement containing all of the possible case statements for a defined enum as in Eclipse?

like image 206
Francois B Avatar asked Feb 20 '15 13:02

Francois B


1 Answers

Put the caret on "switch", press Alt-Enter, select "Create missing 'switch' branches".

like image 136
yole Avatar answered Oct 17 '22 00:10

yole