Shortcut

Visual Studio Code Select All Occurrences Shortcut

The Visual Studio Code shortcut to select all occurrences is Ctrl + Shift + L on Windows. On Mac, press Cmd + Shift + L.

Quick Answer

Windows
Ctrl+Shift+L
Mac
Cmd+Shift+L
Web
Not confirmed yet
Visual Studio CodeShortcut

Select All Occurrences

Windows
Ctrl+Shift+L

Selects every match of the current selection.

Learn More

How to select all occurrences in Visual Studio Code

  1. Open Visual Studio Code and go to where you want to select all occurrences.
  2. Press Ctrl + Shift + L on Windows or Cmd + Shift + L on Mac.

Visual Studio Code Select All Occurrences Shortcut for Windows

Press Ctrl + Shift + L.

Visual Studio Code Select All Occurrences Shortcut for Mac

Press Cmd + Shift + L.

Visual Studio Code Select All Occurrences Shortcut for Visual Studio Code Web

We haven't confirmed a Visual Studio Code Web shortcut for this yet.

Related Keyboard Shortcuts

Frequently asked questions

What is the Visual Studio Code select all occurrences shortcut?

On Windows, press Ctrl + Shift + L. On a Mac, press Cmd + Shift + L.

Is there a Mac shortcut to select all occurrences in Visual Studio Code?

Yes: Cmd + Shift + L.

Does it work in Visual Studio Code for the web?

We haven't confirmed a web version shortcut for this yet.

Official source · How we verify