- Code the first
switch case
logic; - Copy and paste the entire line (CRTL+C and CTRL+V);
- Move the duplicated line to the next
switch case
(Alt + Arrow down) and you should see a suggestion for the otherscases
; - Now change the name of the column in the second
switch case
and at this moment you should see suggestions according to each case respecting the columns of the table of the same name asenum
.