Is there any shortcut to immediately create (for one enum) all cases in a switch case statement?
To keep the answer short: there's none (yet).
Feel free to file a feature bug at netbeans.
However, there are some helpers:
cs + <TAB> to generate a case template, including break and a ready-to-type case-value.sw + <TAB> to generate a switch/case template. It doesn't generate cases for all enum values, but in addition to the case template it reduces the effort a lot!You can find all temples at: Tools -> Options -> Editor -> Code Templates.
Maybe you can write even a template to generate a switch/case for all enum values.
Feature announced for Netbeans 8.1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With