Add selection to next match: the shortcut in 7 apps
On Mac it is usually Cmd+D (4 of 6 apps); on Windows it is usually Ctrl+D (4 of 7 apps); on Linux it is usually Ctrl+D (4 of 6 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| CursorAdd the next match to the selection | CmdD | CtrlD | CtrlD |
| IntelliJAdd the next occurrence | CtrlG | AltJ | AltJ |
| Visual StudioAdd the next match to the selection | — | AltShift. | — |
| Sublime TextAdd the next match to the selection | CmdD | CtrlD | CtrlD |
| VS CodeAdd selection to next find match | CmdD | CtrlD | CtrlD |
| WebStormAdd the next occurrence | CtrlG | AltJ | AltJ |
| ZedSelect the next occurrence | CmdD | CtrlD | CtrlD |
How the apps compare
- Mac: Cmd+D in Cursor, Sublime Text, VS Code and Zed; Ctrl+G in IntelliJ and WebStorm.
- Windows: Ctrl+D in Cursor, Sublime Text, VS Code and Zed; Alt+J in IntelliJ and WebStorm; Alt+Shift+. in Visual Studio.
- Linux: Ctrl+D in Cursor, Sublime Text, VS Code and Zed; Alt+J in IntelliJ and WebStorm.
Where and when it works
- VS Code: Press repeatedly to select the next matching word each time.
Learn it by pressing it: Cursor shortcuts practice, IntelliJ shortcuts practice, Visual Studio shortcuts practice, Sublime Text shortcuts practice, VS Code shortcuts practice, WebStorm shortcuts practice or Zed shortcuts practice.