GitHub
Switch between Write and Preview
To switch between Write and Preview in GitHub, press Ctrl + Shift + P. On a Mac, press Cmd + Shift + P instead. It works in the browser version.
Where it works: Comment field
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Web app | CmdShiftP |
| Windows | Web app | CtrlShiftP |
Where this comes from
Keyboard shortcuts - GitHub Docs
Documentation checked on 2026-09-12. That is a documentation review, not a test run inside the application.