Skip to main content
Dan Rodney/1 min read

Topic 2B: VS Code: Command Palette

Use the Command Palette

1

Open with Cmd-Shift-P / Ctrl-Shift-P

Or View → Command Palette.

2

Start Typing Your Command

Type 'title' to find Transform to Title Case (or just 'ttt' — fuzzy matching is fast).

3

Use Arrow Keys to Pick

Down/Up to move through suggestions.

4

Hit Return/Enter to Run

Command executes on your selection or current file.

Build Web Development Skills at Noble Desktop

Noble Desktop's Full-Stack Web Development Certificate teaches the modern web stack — VS Code is the editor used throughout.

Learn how to efficiently use the Command Palette in Visual Studio Code with this tutorial, covering the basics of operating the palette and highlighting some useful commands for a smoother coding experience.

Using the Command Palette

Vs. Code’s Command Palette lets you quickly find and apply commands. To open the Command Palette, choose View > Command Palette or hit Cmd–Shift–P (Mac) or CTRL–Shift–P (Windows).

Here’s an example of how to use it:

  1. Select some text that you want to convert into title case (where the first letter of each word is capitalized).
  2. Hit Cmd–Shift–P (Mac) or CTRL–Shift–P (Windows) to open the Command Palette.
  3. Start typing title until Transform to Title Case appears and is selected. (If needed, use the Down/Up Arrow keys to move the selection down or up.)

    NOTE: You can also find this command by typing ttt (for t ransform t o t itle case) because the search is very good at matching!

  4. Hit Return (Mac) or Enter (Windows) to execute the command.

Some Useful Commands

  • Sort Lines Ascending or Sort Lines Descending
  • Update Image Size