Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Toggle Text CaseNew to Visual Studio Code? Get it now.
Toggle Text Case

Toggle Text Case

Toggle Text Case

| (0) | Free
Transform selected text to lowercase or uppercase via keyboard shortcuts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Toggle Text Case

Languages: English · 简体中文 · 繁體中文 · Español · Português (BR) · 日本語 · 한국어 · Français · Deutsch · Русский · Italiano · Türkçe

Transform selected text to lowercase or uppercase instantly in VS Code and Cursor.

Select text and press a shortcut — or place the cursor on a word with no selection. Works for code, config files, and plain text.

Features

  • Transform to all lowercase or all uppercase; numbers and symbols stay unchanged
  • Multi-cursor and multi-selection support
  • Auto-converts the word at the cursor when nothing is selected
  • In-place edit with full undo support (Cmd/Ctrl+Z)
  • Zero configuration — works out of the box
  • UI available in 12 languages (follows VS Code display language)

Quick Start

  1. Select text in the editor (or place the cursor inside a word)
  2. Press the shortcut
  3. Text is replaced in place; the selection is preserved

Examples

Before Lowercase Uppercase
Hello World hello world HELLO WORLD
userName username USERNAME
API_KEY_123 api_key_123 API_KEY_123

Keyboard Shortcuts

Action macOS Windows / Linux
Lowercase Cmd+Shift+L Ctrl+Shift+L
Uppercase Cmd+Shift+U Ctrl+Shift+U

Other Ways to Run

Command Palette

Press Cmd/Ctrl+Shift+P and run the transform commands. Titles follow your VS Code display language (Configure Display Language).

Context Menu

Right-click in the editor and choose the lowercase or uppercase command.

FAQ

Shortcut not working? Ensure focus is in the editor; search toggleTextCase in Keyboard Shortcuts for conflicts.

Nothing selected? The word at the cursor is converted; blank lines are ignored.

Requirements

  • VS Code 1.85.0 or later · Compatible with Cursor

Known Limitations

  • Standard JavaScript case rules; some locale-specific characters may not convert as expected
  • Word boundaries without a selection follow editor built-in rules

License

Proprietary software. Free for personal use; commercial use requires a paid license. See LICENSE. Contact: StudyExchange@163.com

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft