Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add change case operation and keep enum case #12

Conversation

mrliptontea
Copy link

Hi,

Thanks for this plugin, I was looking for a replacement for Inc-Dec-Value for Sublime Text in VS Code.

To be completely happy I missed a feature that when I try "incrementing" a word it would change its casing like so: lowercase → Capitalized → UPPERCASE. This PR adds that.

The case change will be applied unless the number or enum operation was applied first. This also introduced a "problem" if a word is technically an enum but doesn't match case exactly, like TrueTRUE rather than TrueFalse, so I also included this feature, which resolves #3.

Both features can be switched off to restore old behaviour using keepEnumCase and changeCase options.

@nmsmith22389
Copy link
Owner

Thank you! I have been so busy I haven't had a lot of time for this! Missing Inc-Dec-Value from Sublime is also why I made this 😄 I'll work on getting it up on the marketplace.

@LeBenLeBen
Copy link

Oh yes, I would love to see that happen, also missing this feature coming from Sublime. Thanks @mrliptontea !

@mrliptontea
Copy link
Author

I would love to see this merged and published on the vs code marketplace 😬 @nmsmith22389

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try Upper/Lower/TitleCase for enums values
3 participants