Changing case in VS Code
VS Code does have a “sentence case” option, but not by default.
Built-in options (default)
VS Code only includes:
- Uppercase
- Lowercase
- Title Case
You can access them via:
- Windows/Linux:
Ctrl + Shift + P - macOS:
Cmd + Shift + P→ type “Transform to…”
You won’t see Sentence Case there.
How to get Sentence Case in VS Code
ption 1: Install an extension (recommended)
Install “Change Case” extension.
Steps:
- Open Extensions (
Ctrl + Shift + X) - Search for Change Case
- Install it
- Select your text
- Press
Ctrl + Shift + P - Choose Change Case → Sentence case
This converts text like:
this is a test. this is another test.
This is a test. This is another test.
ption 2: Keyboard shortcut (after extension)
Once installed, you can bind a shortcut:
- Go to Keyboard Shortcuts
- Search for
sentence case - Assign your own key combo
If you want a quick workaround (no extension)
You can:
- Convert to lowercase
- Manually capitalize the first letter
…but this won’t handle multiple sentences correctly.