SUGGESTION: Switch builder

I have seen a couple of tools around (e.g. MZ-Tools) that provide a code generator for creating switch statements from enums. Any hope of that in version 2?

4 comments
Comment actions Permalink

Doh! Just found how to do it - add braces to the switch and wait for the icon thingy to pop up. Not quite what I was expecting - I still think a "I want to..." approach is more natural than waiting for the addin to suggest a fix to a "problem".

0
Comment actions Permalink

Hello Jonathan,

could you please submit a request for this to the tracker?


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Doh! Just found how to do it - add braces to the switch and wait for
the icon thingy to pop up. Not quite what I was expecting - I still
think a "I want to..." approach is more natural than waiting for the
addin to suggest a fix to a "problem".



0
Comment actions Permalink

Hello Jonathan,

I the next version we will consider a context action that will be available
on switch variable and parenthesis that will suggest generating cases. Probably,
it will also be available inside switch body and suggest generating missing
cases.

Doh! Just found how to do it - add braces to the switch and wait for
the icon thingy to pop up. Not quite what I was expecting - I still
think a "I want to..." approach is more natural than waiting for the
addin to suggest a fix to a "problem".

Thanks,
Andrey Simanovsky


0
Comment actions Permalink

Jonathan Evans wrote:

Doh! Just found how to do it - add braces to the switch and wait for the icon thingy to pop up. Not quite what I was expecting - I still think a "I want to..." approach is more natural than waiting for the addin to suggest a fix to a "problem".


Hey I didn't know that, cool feature, thanks :) !

0

Please sign in to leave a comment.