Currently, there is only 1 code template for switch case and that always produces ":". We should have another code template which can generate "->" for Java 12 and above with preview feature enabled. Also there should be a code template for Switch Expression which could add "break <expression>;" for each switch case .
I have added code templates for Switch Labeled Statement and Switch Expressions.
Currently there is no mechanism of showing the template only on a specific java version. This needs to be worked upon. So keeping this bug open to work on it.
I have made changes so that these new templates are only available on Java Projects having compliance Java 12 or above. Also modified N&N entry to update this information.