wmaurer/vscode-change-case

Convert to title case without stripping punctuation like commas and periods.

Eldaw opened this issue · 9 comments

Eldaw commented

If I want to convert this:

one two three. four, five

into this:

One Two Three. Four, Five

there is no way to currently do this.

It also seams to strip html brackets. one two <em>three</em> turns into One Two Em Three Em

It also strips colons and apostrophes.
from:
What's on the table: who knows?

to:
What S On The Table Who Knows

I'm having the same issue.

bcon commented

+1 I would love for this to be fixed/implemented.

+1. I use this extension a lot and having it strip out punctuation is really a pain.

+1. This command is actually not doing Title Case, since any title can have punctuation. Please do not remove punctuation from my titles!

can't stop, won't stop -> Can T Stop Won T Stop

Young Gunz are sad.

Another test case: Allow "neutral" arguments --> Allow "Neutral" Arguments

Side node: The functionality is implemented at https://github.com/blakeembrey/change-case. Thus, one should check if the upstream library already supports this featre and "just" an update of the dependency is necessary.