Select all occurrences: the shortcut in 4 apps
On Windows it is usually Ctrl+Shift+L (2 of 4 apps); on Linux it is usually Ctrl+Shift+L (2 of 3 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| IntelliJSelect all occurrences | CtrlCmdG | CtrlAltShiftJ | CtrlAltShiftJ |
| Visual StudioSelect every match | — | AltShift; | — |
| VS CodeSelect all occurrences of current selection | ShiftCmdL | CtrlShiftL | CtrlShiftL |
| ZedSelect every occurrence | ShiftCmdL | CtrlShiftL | CtrlShiftL |
How the apps compare
- Mac: Ctrl+Cmd+G in IntelliJ; Cmd+Shift+L in VS Code; Shift+Cmd+L in Zed.
- Windows: Ctrl+Shift+L in VS Code and Zed; Ctrl+Alt+Shift+J in IntelliJ; Alt+Shift+; in Visual Studio.
- Linux: Ctrl+Shift+L in VS Code and Zed; Ctrl+Alt+Shift+J in IntelliJ.
Learn it by pressing it: IntelliJ shortcuts practice, Visual Studio shortcuts practice, VS Code shortcuts practice or Zed shortcuts practice.