Go to definition: the shortcut in 10 apps
On Mac it is usually F12 (4 of 9 apps); on Windows it is usually F12 (5 of 10 apps); on Linux it is usually F12 (4 of 9 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| CursorGo to definition | F12 | F12 | F12 |
| EclipseOpen the declaration | F3 | F3 | F3 |
| IntelliJGo to declaration | CmdB | CtrlB | CtrlB |
| Visual StudioGo to the definition | — | F12 | — |
| NeovimGo to the definition · Normal mode, language server attached | Ctrl] | Ctrl] | Ctrl] |
| PyCharmGo to the declaration | CmdB | CtrlB | CtrlB |
| Sublime TextGo to definition | F12 | F12 | F12 |
| VS CodeGo to definition | F12 | F12 | F12 |
| WebStormGo to the declaration | CmdB | CtrlB | CtrlB |
| ZedGo to the definition | F12 | F12 | F12 |
How the apps compare
- Mac: F12 in Cursor, Sublime Text, VS Code and Zed; Cmd+B in IntelliJ, PyCharm and WebStorm; F3 in Eclipse; Ctrl+] in Neovim.
- Windows: F12 in Cursor, Visual Studio, Sublime Text, VS Code and Zed; Ctrl+B in IntelliJ, PyCharm and WebStorm; F3 in Eclipse; Ctrl+] in Neovim.
- Linux: F12 in Cursor, Sublime Text, VS Code and Zed; Ctrl+B in IntelliJ, PyCharm and WebStorm; F3 in Eclipse; Ctrl+] in Neovim.
Where and when it works
- Neovim (Normal mode, language server attached).
Learn it by pressing it: Cursor shortcuts practice, Eclipse shortcuts practice, IntelliJ shortcuts practice, Visual Studio shortcuts practice, Neovim shortcuts practice, PyCharm shortcuts practice, Sublime Text shortcuts practice, VS Code shortcuts practice, WebStorm shortcuts practice or Zed shortcuts practice.