79170664

Date: 2024-11-08 15:41:17
Score: 3
Natty:
Report link

I often use Switch with enums. JaredPar's answer is good, but it doesn't work for me (possibly because i am using ReSharper).

What is working for me: after creating a Switch statement based on some enum, i click my mouse at begining of word "Switch", then i press ALT+ENTER and select "Add switch statement for bla-bla-bla...". This will generate all cases for all possible enum values.

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Oleksandr Martysh