VS Code Keyboard Shortcuts/Add next occurrence to selection

Select next matching occurrence.

Section: Multi-Cursor

Add next occurrence to selection

text
text
Windows/Linux: Ctrl+D
macOS: Cmd+D

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
Select all occurrences
Create cursors for all matches.
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.