Skip to the main content

GitHub

Switch between Write and Preview

CmdShiftP

Mac Web app GitHub web interface

Practice this

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

Variants of this shortcut
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.

Report a correction