Edit: Add Caret at Next Occurrence

edit.addCaretNextOccurrence

Add a caret at the next occurrence of the selection.

How to run it

Open the command palette and search for Edit: Add Caret at Next Occurrence, then press Enter. The palette opens with M-x in Emacs, Ctrl+Shift+P in CUA, Sublime Text and VS Code, and Ctrl+Shift+A in IntelliJ IDEA (⇧⌘P and ⇧⌘A on macOS). It also has a default keybinding:

KeymapWindows / LinuxmacOS
Sublime TextCtrl+D⌘D
VS CodeCtrl+D⌘D
IntelliJ IDEAAlt+J⌃G

See also