wmaurer / vscode-change-case

Change Case Extension for Visual Studio Code
MIT License
350 stars 37 forks source link

Some case transformations delete special characters #45

Open ferenczy opened 1 year ago

ferenczy commented 1 year ago

Some case transformations (e.g. the Sentence, the Title and the No), where I would expect that the special characters (e.g. the punctuation) are preserved, are actually stripping them, so their usability is very limited. While for other transformations (e.g. the camelCase, the Dot, etc.) it may be useful to strip them because those transformations are being used mainly for programming language identifiers, transformations that are usually used for natural languages should preserve all characters (like the Lower, the Upper and the Swap transformations are doing). Also, the Code's native Transform to Title Case transformation is keeping the special characters.

Actually, wouldn't it be better to keep all special characters for all transformations? I would expect that the case transformation operation changes the case of characters where it's possible to do that (the alphabet) and doesn't touch any other characters at all.

rolivegab commented 1 year ago

very much agreed, erasing special symbols is not good, neither expected