Skip to content

↑↓ moveEnter openEsc close

GitHub keyboard shortcuts

GitHub github.com (November 2026) · 36 shortcuts · checked Nov 2026 · Source: GitHub (Microsoft) docs

GitHub is where most code is hosted and reviewed. Its keys open the command palette, jump around a repository, find files and work through issues and pull requests.

Most used GitHub keyboard shortcuts

The GitHub shortcuts worth learning first. The full list follows, grouped by task.

36 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

Site wide

7 shortcuts
ActionMacWindowsLinux
Open the command paletteCmdKCtrlKCtrlK
Open the shortcut help panelShift/Shift/Shift/
Go to notificationsG,NG,NG,N
Go to your dashboardG,DG,DG,D
Open in the web editor (github.dev)...
Open the web editor in a new tabShift.Shift.Shift.

Repositories

7 shortcuts
ActionMacWindowsLinux
Go to the Code tabG,CG,CG,C
Go to IssuesG,IG,IG,I
Go to pull requestsG,PG,PG,P
Go to ActionsG,AG,AG,A
Go to ProjectsG,BG,BG,B
Go to the wikiG,WG,WG,W
Go to DiscussionsG,GG,GG,G

Files and code

6 shortcuts
ActionMacWindowsLinux
Find a fileTTT
Go to a lineViewing a fileLLL
Open the blame viewViewing a fileBBB
Search in the fileViewing a fileCmdFCtrlFCtrlF
Switch branch or tagRepositoryWWW
ActionMacWindowsLinux
Create an issueIssues listCCC
Filter the listIssues or pull requests listUUU
Next itemIssues or pull requests listJJJ
Previous itemIssues or pull requests listKKK
Open the itemIssues or pull requests listOorEnterOorEnterOorEnter
Set labelsIssue or pull requestLLL
Set assigneesIssue or pull requestAAA
Request a reviewerPull requestQQQ
Set a milestoneIssue or pull requestMMM
Quote the selected text in a replyIssue or pull requestRRR
Switch between Write and PreviewComment boxShiftCmdPCtrlShiftPCtrlShiftP
Submit the commentComment boxCmdEnterCtrlEnterCtrlEnter

Writing

4 shortcuts
ActionMacWindowsLinux
BoldComment boxCmdBCtrlBCtrlB
ItalicComment boxCmdICtrlICtrlI
Insert codeComment boxCmdECtrlECtrlE
Show the key map: which keys GitHub uses mostDarker orange = used by more shortcuts

GitHub repository shortcuts: find a file, blame and permalinks

Open in VS Code
Press . on any repository or pull request to open it in github.dev, VS Code in the browser; from there, the Remote Repositories menu can open it in desktop VS Code.

Issue and pull request shortcuts on GitHub

Approve a pull request
There is no single key: open Files changed, choose Review changes, pick Approve and press Ctrl+Enter (Cmd+Enter) in the comment box to submit.

Markdown shortcuts in GitHub comments

Strikethrough and code blocks
Wrap text in ~~two tildes~~ to strike it through, and put three backticks on the lines above and below code for a code block.

GitHub Copilot keyboard shortcuts in VS Code

Copilot runs in your editor, so its keys come from the editor rather than github.com. In VS Code:

Suggestions
Tab accepts a grey suggestion and Esc dismisses it; Alt+] and Alt+[ (Option on Mac) show the next and previous one.
Chat
Ctrl+Alt+I (Ctrl+Cmd+I on Mac) opens the Chat view and Ctrl+I (Cmd+I) starts inline chat in the editor.

GitHub keyboard shortcuts: questions

How do I open the web editor on GitHub?
Press . (period) on any repository or pull request to open it in github.dev, the browser version of VS Code. Shift+. opens it in a new tab.
How do I turn off GitHub keyboard shortcuts?
Open Settings > Accessibility and turn off Character keys under Keyboard shortcuts. Shortcuts that use a modifier, such as Ctrl+K, keep working.

These are the default key bindings in GitHub github.com (November 2026), as published by GitHub (Microsoft). Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: GitHub keyboard shortcuts for Mac, GitHub keyboard shortcuts for Windows, GitHub keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.