Please consider editing your post and mark it as obsolete instead. Do you want to delete post?
SUGGESTION: Switch builder
Permanently deleted user
Created
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?
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".
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".
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".
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".
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".
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!"
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.
Thanks,
Andrey Simanovsky
Jonathan Evans wrote:
Hey I didn't know that, cool feature, thanks :) !