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 Alt+Shift+L 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. 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