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.

Windows, macOS, Linux · 85 shortcuts

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 a milestoneMMM
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
Insert a Markdown quoteCtrlShift.CmdShift.CtrlShift.
Insert a suggested changeCtrlGCmdGCtrlG

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
Switch to a branch or tagWWW
Start searching in the file editorCtrlFCmdFCtrlF
Find the next matchCtrlGCmdGCtrlG
Find the previous matchCtrlShiftGCmdShiftGCtrlShiftG
Replace in the file editorCtrlShiftFCmdOptionFCtrlShiftF
Replace all in the file editorCtrlShiftRCmdShiftOptionFCtrlShiftR
Jump to a line in the file editorAltGAltGAltG
Undo in the file editorCtrlZCmdZCtrlZ
Redo in the file editorCtrlYCmdYCtrlY

Navigation within code files

Move a cursor through a code file, highlight a line, and inspect the symbol under the cursor.

ActionWindowsmacOSLinux
Highlight the current lineShiftJShiftJShiftJ
Open the line menu for a selected lineShiftAltCShiftOptionCShiftAltC
Highlight the current symbol and its other occurrencesCtrlEnterCmdEnterCtrlEnter

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
Get suggestions in the workflow editorCtrlSpaceCmdSpaceCtrlSpace
Open the project row actions menuCtrlShift\CmdShift\CtrlShift\
Add the cell or card below to the selectionShiftDownShiftDownShiftDown
Add the cell or card above to the selectionShiftUpShiftUpShiftUp
Archive selected project itemsEEE

Pull request files changed

Filter changed files, change the commit scope, and submit review comments while inspecting a pull request.

ActionWindowsmacOSLinux
Open the commits filterCCC
Focus the changed-files filterTTT
Submit a review comment from Files changedCtrlShiftEnterCmdShiftEnterCtrlShiftEnter

Network graph

Scroll the repository network graph in small steps or jump to an edge of the graph.

ActionWindowsmacOSLinux
Scroll the network graph leftH also scrolls left.LeftLeftLeft
Scroll the network graph rightL also scrolls right.RightRightRight
Scroll the network graph upK also scrolls up.UpUpUp
Scroll the network graph downJ also scrolls down.DownDownDown
Scroll all the way leftShiftHShiftLeftShiftH
Scroll all the way rightShiftLShiftRightShiftL
Scroll all the way upShiftKShiftUpShiftK
Scroll all the way downShiftJShiftDownShiftJ

Make a printable GitHub sheet