auto case

I hope someone will tell me this already exists

I would like it if when I type  

switch ( someenum )

with a keystroke or two IntelliJ would list all the possible enums
each labelled with case xxx:


Lets say there are 7 enums. I specified 5 and left out two.

I would like it if IntelliJ would generate

case missing1:
case missing2:

so that all cases are explicitly dealt with, even if default logic
handles them. I want some help catching errors where I forgot to
specify one of the options.

Roedy Green Canadian Mind Products http://mindprod.com
The art of strongly-typed language design is largely arranging
that errors are automatically detected as soon as possible
in the compose, compile, run cycle.


Please sign in to leave a comment.