Fork of wmaurer's change-case.
A wrapper around node-change-case for Visual Studio Code with some extra goodies. Quickly change the case of the current selection or current word, toggle between two configured case settings, or copy the toggled case to the clipboard. Handy for working with e.g. AngularJS directives.
If only one word is selected, the extension.toggleCase.commands
command gives you a preview of each option:
toggle-case
also works with multiple cursors:
Note: Please read the documentation on how to use multiple cursors in Visual Studio Code.
Launch VS Code Quick Open (Ctrl/Cmd+P), paste the following command, and press enter.
ext install toggle-case
extension.toggleCase.commands
: List all Change Case commands, with preview if only one word is selectedextension.toggleCase.camel
: Change Case 'camel': Convert to a string with the separators denoted by having the next letter capitalisedextension.toggleCase.constant
: Change Case 'constant': Convert to an upper case, underscore separated stringextension.toggleCase.dot
: Change Case 'dot': Convert to a lower case, period separated stringextension.toggleCase.kebab
: Change Case 'kebab': Convert to a lower case, dash separated string (alias for param case)extension.toggleCase.lower
: Change Case 'lower': Convert to a string in lower caseextension.toggleCase.lowerFirst
: Change Case 'lowerFirst': Convert to a string with the first character lower casedextension.toggleCase.no
: Convert the string without any casing (lower case, space separated)extension.toggleCase.param
: Change Case 'param': Convert to a lower case, dash separated stringextension.toggleCase.pascal
: Change Case 'pascal': Convert to a string denoted in the same fashion as camelCase, but with the first letter also capitalisedextension.toggleCase.path
: Change Case 'path': Convert to a lower case, slash separated stringextension.toggleCase.sentence
: Change Case 'sentence': Convert to a lower case, space separated stringextension.toggleCase.snake
: Change Case 'snake': Convert to a lower case, underscore separated stringextension.toggleCase.swap
: Change Case 'swap': Convert to a string with every character case reversedextension.toggleCase.title
: Change Case 'title': Convert to a space separated string with the first character of every word upper casedextension.toggleCase.upper
: Change Case 'upper': Convert to a string in upper caseextension.toggleCase.upperFirst
: Change Case 'upperFirst': Convert to a string with the first character upper cased
New from fork
extension.toggleCase.toggleCase
: Toggle Case: Toggle between configured casesextension.toggleCase.copyToggled
: Copy Toggled: Copy toggled between configured cases
Create an issue, or ping @waynemaurer on Twitter.