vscode-change-case icon indicating copy to clipboard operation
vscode-change-case copied to clipboard

Some case transformations delete special characters

Open ferenczy opened this issue 1 year ago • 1 comments

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.

ferenczy avatar Nov 28 '22 17:11 ferenczy

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

rolivegab avatar Dec 27 '22 19:12 rolivegab