Format Switcher is a VS Code extension that transforms selected text between seven naming-convention formats via the right-click context menu or a keyboard shortcut.
Supported formats:
camelCase
snake_case
CONSTANT_CASE
kebab-case
Train-Case
lower words
UPPER WORDS
- Multi-cursor support — all active selections are converted simultaneously.
- Context menu only appears when text is selected (no more silent no-ops).
From the Marketplace:
- Open VS Code
- Press
Ctrl+Pand run:ext install EdFerVIIIA.format-switcher - Or search "Format Switcher" in the Extensions view (
Ctrl+Shift+X)
From a VSIX file:
code --install-extension format-switcher-<version>.vsix
Select any text, right-click, and choose Change case → pick the desired format.
Press Ctrl+Shift+F with text selected to cycle through formats in order:
camelCase → snake_case → kebab-case → CONSTANT_CASE → Train-Case → lower words → UPPER WORDS → camelCase → …
The shortcut only activates when the cursor is inside the editor with a selection, so it does not conflict with the default "Find in Files" shortcut. You can customise the keybinding any time via File → Preferences → Keyboard Shortcuts.
Bug reports and feature requests are welcome — please open an issue.
Pull requests are also welcome. To get started:
git clone https://github.com/EfeDeveloper/format-switcher.git
cd format-switcher
npm install
npm testPress F5 in VS Code to launch the Extension Development Host, or use the "Extension Tests" launch config to debug tests.
MIT © EfeDeveloper