Transform a string between various cases.
Included case transformations:
camelCaseCapital CaseCONSTANT_CASE (aka MACRO_CASE)dot.caseHeader-Case (aka Train-Case)lower caselower Firstno casekebab-case (aka param-case)KEBAB-UPPER-CASEPascalCasePascal_Snake_Casepath/caseAlTeRnAtInG cAsErAndOm cAsESentence casesnake_casesWAP cASETitle CaseUPPER CASEUpper firstBy default, cases do not automatically pre-lowercase the text. This means that an input of THIS IS A TEST SENTENCE does not get modified when transforming to sentence case, title case, among others. This is an intentional design choice by the author of the library that this extension uses internally, change-case.
Basically, the library doesn't pre-lowercase the text because:
iPhone and NASA would be transformed into iphone and nasa, which is generally not the desired behavior. It's not possible to include these words as a built-in library exception because there are too many exceptions to account for.hereAreSomeWords to Here are some words. If the text was pre-lowercased, the transformation would result in herearesomewords, which is not the desired output.See the relevant GitHub issues for more information:
If you would like to pre-lowercase the text before transforming it, you can disable the Preserve Casing preference (enabled by default) in the extension settings. This lowercases all text input before every transformation. Additionally, context-aware transformations, (mentioned above) will stop working when this setting is enabled.
For more information, please see:
You can add custom exceptions to the list of words that should not be modified when transforming the text to title case or sentence case. This is useful for words like iPhone and NASA that should not be lowercased when transforming text.
It also always includes these words from the underlying library, which are used as defaults for title and sentence case transformations.
Change the case of the selected text or text in the clipboard
Convert selected text or clipboard to camelCase
Convert selected text or clipboard to Capital Case
Convert selected text or clipboard to CONSTANT_CASE
Convert selected text or clipboard to dot.case
Convert selected text or clipboard to Header-Case
Convert selected text or clipboard to lower case
Convert selected text or clipboard to lower First
Convert selected text or clipboard to no case
Convert selected text or clipboard to kebab-case
Convert selected text or clipboard to KEBAB-UPPER-CASE
Convert selected text or clipboard to PascalCase
Convert selected text or clipboard to Pascal_Snake_Case
Convert selected text or clipboard to path/case
Convert selected text or clipboard to rAndOm cAsE
Convert selected text or clipboard to Sentence case
Convert selected text or clipboard to snake_case
Convert selected text or clipboard to aLtErNaTiNg cAsE
Convert selected text or clipboard to sWAP cASE
Convert selected text or clipboard to Title Case
Convert selected text or clipboard to UPPER CASE
Convert selected text or clipboard to Upper first
alternatingCase transformation alongside the existing randomCase optionKeyboard.Shortcut.Common.Copy shortcut for Copy to Clipboard actionuseEffect hooksupperFirst and lowerFirst implementationsCaseFunction type definitionMAX_RECENT_CASES constant to replace magic numberPreserve Casing preferenceKEBAB-UPPER-CASE transform correctlyUpper case properlylower case properlyKEBAB-UPPER-CASE transformPascal Snake Case being incorrectly named as Pascal Case in preferencespopToRoot setting.Primary Action preference.getFrontmostApplication API.