GitHub keyboard shortcuts

GitHub's keyboard layer changes with the page you are on. These groups cover site navigation, repository sections, issue and pull request triage, comment editing, code browsing, and notifications.

GitHub changes its keyboard context with the page. Begin with site navigation, then use the repository, issue, pull request, and code sections for the places where review work actually happens.

Repository tabs

Sequence shortcuts that jump straight to repository sections.

ActionWindowsmacOSLinux
Go to Code tabGCGCGC
Go to Issues tabGIGIGI
Go to Pull requests tabGPGPGP
Go to Actions tabGAGAGA
Go to Wiki tabGWGWGW
Go to Discussions tabGGGGGG
Go to Security and quality tabGSGSGS

Issues and pull requests

Creating, opening, and metadata triage on lists and issue pages.

ActionWindowsmacOSLinux
Create an issueWorks on issue and pull request lists.CCC
Open highlighted issue or pull requestEnter also opens it.OOO
Request a reviewerQQQ
Set assigneeAAA
Apply or filter by labelLLL
Submit a review commentIn the Files changed tab of a pull request.CtrlShiftEnterCmdShiftEnterCtrlShiftEnter

Comments and markdown

Format a comment, open the editor, submit it, or move through markdown-friendly controls.

ActionWindowsmacOSLinux
Submit commentCtrlEnterCmdEnterCtrlEnter
Toggle Write and Preview tabsCtrlShiftPCmdShiftPCtrlShiftP
Quote selected text in your replyRRR
Insert bold MarkdownCtrlBCmdBCtrlB
Insert italic MarkdownCtrlICmdICtrlI
Insert inline code MarkdownCtrlECmdECtrlE
Insert an ordered listCtrlShift7CmdShift7CtrlShift7
Insert an unordered listCtrlShift8CmdShift8CtrlShift8

Source code browsing

Use single-key actions to move through file views, diffs, blame, and the code around a change.

ActionWindowsmacOSLinux
Activate the file finderTTT
Jump to a line in your codeLLL
Open blame viewBBB
Expand a file URL to its canonical formYYY
Show or hide diff commentsIII
Show or hide diff annotationsAAA
Open the source file in the editorEEE

Notifications

Open notification views and move through the updates waiting for your attention.

ActionWindowsmacOSLinux
Mark notification as doneEEE
Mark notification as readShift+U marks it unread again.ShiftIShiftIShiftI
Mark notification as unreadShiftUShiftUShiftU
Unsubscribe from the notificationShiftMShiftMShiftM

Issue and pull request lists

Filter lists by author, label, milestone, or assignee, then open the selected issue or pull request.

ActionWindowsmacOSLinux
Focus the issue or pull request filterCtrl/Cmd/Ctrl/
Filter by authorUUU
Filter by or edit labelsLLL
Filter by or edit milestonesMMM
Filter by or edit assigneeAAA

Projects and Actions

Move through project boards and workflow logs when GitHub is acting more like an operations workspace.

ActionWindowsmacOSLinux
Focus the project filter fieldCtrlFCmdFCtrlF
Toggle edit mode for a project cellEnterEnterEnter
Select a project itemShiftSpaceShiftSpaceShiftSpace
Open a selected project itemSpaceSpaceSpace
Go to the workflow fileGFGFGF
Toggle timestamps in workflow logsTTT
Toggle full-screen workflow logsFFF

Make the useful keys stick

GitHub has many contexts, so muscle memory needs a home. Pick the page where you do the most work, learn its keys first, and let the other sections stay reference material instead of homework.

You do not need this whole page in your head. Pick two shortcuts that remove a repeated hand movement, use them until they feel ordinary, and come back for the next pair.

Make a printable sheet for this app