Toggle preview pane: the shortcut in 3 apps
Each app binds this differently. The table shows the keys in GitHub, macOS and Windows 11 side by side.
| App | Mac | Windows | Linux |
|---|---|---|---|
| GitHubSwitch between Write and Preview · Comment box | ShiftCmdP | CtrlShiftP | CtrlShiftP |
| macOSShow or hide the Preview pane in Finder windows | ShiftCmdP | — | — |
| Windows 11Display the preview pane | — | AltP | — |
How the apps compare
- Mac: Shift+Cmd+P in GitHub; Cmd+Shift+P in macOS.
- Windows: Ctrl+Shift+P in GitHub; Alt+P in Windows 11.
- Linux: Ctrl+Shift+P in GitHub.
Where and when it works
- GitHub (Comment box).
Learn it by pressing it: GitHub shortcuts practice, macOS shortcuts practice or Windows 11 shortcuts practice.