Switches the case of a word or selection in VS Code: camelCase, snake_case, CONSTANT_CASE and more
open sourceMITfree
A VS Code extension that converts the word at the cursor or the selected text to another case: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, path/case, Title Case, Sentence case and others. A quick pick previews every conversion; it works with several cursors at once (one undo reverts them all), can copy the converted text without changing the document, rename a symbol in another case, and cycle through a chosen list of cases with one shortcut. It wraps the change-case library. MIT licensed.
Problems it solves
- convert a variable name from camelCase to snake_case in my editor
- change the case of many identifiers at once with multiple cursors
- rename a constant to SCREAMING_SNAKE_CASE without retyping it
Features
- converts a word or selection to camel, snake, constant, kebab, Pascal and other cases
- previews every conversion in a quick pick
- works with multiple cursors
- renames a symbol in another case
- cycles through a chosen list of cases
Limitations
- Open VSX carries only an old 1.0.0 build from April 2022, republished by Open VSX's own account; the maker publishes newer versions on the Visual Studio Marketplace only.1
