Insert line below: the shortcut in 7 apps
On Mac it is usually Ctrl+O (2 of 7 apps); on Windows it is usually O (2 of 6 apps); on Linux it is usually O (2 of 6 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EclipseInsert a line below | ShiftEnter | ShiftEnter | ShiftEnter |
| EmacsOpen a new line after the cursor | CtrlO | CtrlO | CtrlO |
| macOSInsert a new line after the insertion point | CtrlO | — | — |
| NeovimOpen a new line below and insert · Normal mode | O | O | O |
| Sublime TextInsert a line after | CmdEnter | CtrlEnter | CtrlEnter |
| VimOpen a new line below and insert · Normal mode | O | O | O |
| VS CodeInsert line below | CmdEnter | CtrlEnter | CtrlEnter |
How the apps compare
- Mac: Ctrl+O in Emacs and macOS; O in Neovim and Vim; Cmd+Enter in Sublime Text and VS Code; Shift+Enter in Eclipse.
- Windows: O in Neovim and Vim; Ctrl+Enter in Sublime Text and VS Code; Shift+Enter in Eclipse; Ctrl+O in Emacs.
- Linux: O in Neovim and Vim; Ctrl+Enter in Sublime Text and VS Code; Shift+Enter in Eclipse; Ctrl+O in Emacs.
Where and when it works
Learn it by pressing it: Eclipse shortcuts practice, Emacs shortcuts practice, macOS shortcuts practice, Neovim shortcuts practice, Sublime Text shortcuts practice, Vim shortcuts practice or VS Code shortcuts practice.