VS Code Keyboard Shortcuts/Select all occurrences

Create cursors for all matches.

Section: Multi-Cursor

Select all occurrences

text
text
Windows/Linux: Ctrl+Shift+L
macOS: Cmd+Shift+L

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Multi-Cursor
Add next occurrence to selection
Select next matching occurrence.
OpenIn sheettextsame section
Column / box select
Create rectangular selection.
OpenIn sheettextsame section
Move last selection to next match
Skip the current occurrence and continue selection.
OpenIn sheettextsame section
Add cursors to line ends
Place a cursor at the end of each selected line.
OpenIn sheettextsame section
New window
Open a new VS Code window.
Quick Open
Search and open files.