Shortcut
GitHub Toggle Write and Preview Tabs Shortcut
The GitHub shortcut to toggle write and preview tabs is Ctrl + Shift + P on Windows. On Mac, press Cmd + Shift + P.
Quick Answer
- Windows
- Ctrl+Shift+P
- Mac
- Cmd+Shift+P
- Web
- Not confirmed yet
GitHubShortcut
Toggle Write and Preview Tabs
Switches between writing a comment and previewing how it will render.
How to toggle write and preview tabs in GitHub
- Open GitHub and go to where you want to toggle write and preview tabs.
- Press Ctrl + Shift + P on Windows or Cmd + Shift + P on Mac.
GitHub Toggle Write and Preview Tabs Shortcut for Windows
Press Ctrl + Shift + P.
GitHub Toggle Write and Preview Tabs Shortcut for Mac
Press Cmd + Shift + P.
GitHub Toggle Write and Preview Tabs Shortcut for GitHub Web
We haven't confirmed a GitHub Web shortcut for this yet.
Related Keyboard Shortcuts
Frequently asked questions
What is the GitHub toggle write and preview tabs shortcut?
On Windows, press Ctrl + Shift + P. On a Mac, press Cmd + Shift + P.
Is there a Mac shortcut to toggle write and preview tabs in GitHub?
Yes: Cmd + Shift + P.
Does it work in GitHub for the web?
We haven't confirmed a web version shortcut for this yet.
Official source · How we verify