You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've just found this plugin, which looks very interesting.
A thing I have to do sometimes is create switch statements for enum-types, mapping out every single element. So I'd propose a feature request, to generate switch statements from enum definitions.
For example from
enum Seasons {
SPRING, SUMMER, FALL, WINTER
};
Generate:
Seasons s = // ...switch ( s ) {
case SPRING:
break;
case SUMMER:
break;
case FALL:
break;
case WINTER:
break;
}
While we're at it, a separate function to generate a code to convert the enum from String and to String would be swell as well. E.g.
Hello,
I've just found this plugin, which looks very interesting.
A thing I have to do sometimes is create switch statements for enum-types, mapping out every single element. So I'd propose a feature request, to generate switch statements from enum definitions.
For example from
enum Seasons { SPRING, SUMMER, FALL, WINTER };
Generate:
While we're at it, a separate function to generate a code to convert the enum from String and to String would be swell as well. E.g.
and
This is just a feature request. Thank you for your work, even if you don't find this feature interesting enough the implement.
Kind Regards,
snaums
The text was updated successfully, but these errors were encountered: