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

Windows
Ctrl+Shift+P

Switches between writing a comment and previewing how it will render.

Learn More

How to toggle write and preview tabs in GitHub

  1. Open GitHub and go to where you want to toggle write and preview tabs.
  2. 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