VSCode has an built-in function to lowercase, uppercase and titlecase selected text.
- Select the text to transform. Use
Ctrl + L
to selected the whole line - Open
Show all commands
. Linux and Windows:Ctrl + Shift + P
, Mac:⇧⌘P
- Type in the command, e.g.
lower
,upper
,title
- Wait for auto-complete (like in the animation)
- Hit
Enter
Top comments (4)
Might be useful to someone reading this:
You can also bind these commands to a custom shortcut (they are not set by default).
I really appreciate this, it was useful for me, thanks
This is very good for me, thanks for sharing.
Very useful! Thanks