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:
| Keymap | Windows / Linux | macOS |
|---|---|---|
| Sublime Text | Ctrl+D | ⌘D |
| VS Code | Ctrl+D | ⌘D |
| IntelliJ IDEA | Alt+J | ⌃G |