Awesome
Change Case Extension for Visual Studio Code
A wrapper around node-change-case for Visual Studio Code. Quickly change the case of the current selection or current word.
If only one word is selected, the extension.changeCase.commands
command gives you a preview of each option:
change-case
also works with multiple cursors:
Note: Please read the documentation on how to use multiple cursors in Visual Studio Code.
Install
Launch VS Code Quick Open (Ctrl/Cmd+P), paste the following command, and press enter.
ext install change-case
Commands
extension.changeCase.commands
: List all Change Case commands, with preview if only one word is selectedextension.changeCase.camel
: Change Case 'camel': Convert to a string with the separators denoted by having the next letter capitalisedextension.changeCase.constant
: Change Case 'constant': Convert to an upper case, underscore separated stringextension.changeCase.dot
: Change Case 'dot': Convert to a lower case, period separated stringextension.changeCase.kebab
: Change Case 'kebab': Convert to a lower case, dash separated string (alias for param case)extension.changeCase.lower
: Change Case 'lower': Convert to a string in lower caseextension.changeCase.lowerFirst
: Change Case 'lowerFirst': Convert to a string with the first character lower casedextension.changeCase.no
: Convert the string without any casing (lower case, space separated)extension.changeCase.param
: Change Case 'param': Convert to a lower case, dash separated stringextension.changeCase.pascal
: Change Case 'pascal': Convert to a string denoted in the same fashion as camelCase, but with the first letter also capitalisedextension.changeCase.path
: Change Case 'path': Convert to a lower case, slash separated stringextension.changeCase.sentence
: Change Case 'sentence': Convert to a lower case, space separated stringextension.changeCase.snake
: Change Case 'snake': Convert to a lower case, underscore separated stringextension.changeCase.swap
: Change Case 'swap': Convert to a string with every character case reversedextension.changeCase.title
: Change Case 'title': Convert to a space separated string with the first character of every word upper casedextension.changeCase.upper
: Change Case 'upper': Convert to a string in upper caseextension.changeCase.upperFirst
: Change Case 'upperFirst': Convert to a string with the first character upper cased
Support
Create an issue, or ping @waynemaurer on Twitter.