GitHub keyboard shortcuts
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.
- Open the command paletteMacCmdKWindowsCtrlKLinuxCtrlK
- SearchMac/orSWindows/orSLinux/orS
- Find a fileMacTWindowsTLinuxT
- Go to the Code tabMacG,CWindowsG,CLinuxG,C
- Go to IssuesMacG,IWindowsG,ILinuxG,I
- Go to pull requestsMacG,PWindowsG,PLinuxG,P
- Open in the web editor (github.dev)Mac.Windows.Linux.
- Expand the URL to a permanent linkMacYWindowsYLinuxY
- Open the blame viewMacBWindowsBLinuxB
- Open the shortcut help panelMacShift/WindowsShift/LinuxShift/
- Submit the commentMacCmdEnterWindowsCtrlEnterLinuxCtrlEnter
Site wide
7 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Open the command palette | CmdK | CtrlK | CtrlK |
| Search | /orS | /orS | /orS |
| Open the shortcut help panel | Shift/ | Shift/ | Shift/ |
| Go to notifications | G,N | G,N | G,N |
| Go to your dashboard | G,D | G,D | G,D |
| Open in the web editor (github.dev) | . | . | . |
| Open the web editor in a new tab | Shift. | Shift. | Shift. |
Repositories
7 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Go to the Code tab | G,C | G,C | G,C |
| Go to Issues | G,I | G,I | G,I |
| Go to pull requests | G,P | G,P | G,P |
| Go to Actions | G,A | G,A | G,A |
| Go to Projects | G,B | G,B | G,B |
| Go to the wiki | G,W | G,W | G,W |
| Go to Discussions | G,G | G,G | G,G |
Files and code
6 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Find a file | T | T | T |
| Go to a lineViewing a file | L | L | L |
| Expand the URL to a permanent linkViewing a file | Y | Y | Y |
| Open the blame viewViewing a file | B | B | B |
| Search in the fileViewing a file | CmdF | CtrlF | CtrlF |
| Switch branch or tagRepository | W | W | W |
Issues and pull requests
12 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| Create an issueIssues list | C | C | C |
| Filter the listIssues or pull requests list | U | U | U |
| Next itemIssues or pull requests list | J | J | J |
| Previous itemIssues or pull requests list | K | K | K |
| Open the itemIssues or pull requests list | OorEnter | OorEnter | OorEnter |
| Set labelsIssue or pull request | L | L | L |
| Set assigneesIssue or pull request | A | A | A |
| Request a reviewerPull request | Q | Q | Q |
| Set a milestoneIssue or pull request | M | M | M |
| Quote the selected text in a replyIssue or pull request | R | R | R |
| Switch between Write and PreviewComment box | ShiftCmdP | CtrlShiftP | CtrlShiftP |
| Submit the commentComment box | CmdEnter | CtrlEnter | CtrlEnter |
Writing
4 shortcuts| Action | Mac | Windows | Linux |
|---|---|---|---|
| BoldComment box | CmdB | CtrlB | CtrlB |
| ItalicComment box | CmdI | CtrlI | CtrlI |
| Insert a linkComment box | CmdK | CtrlK | CtrlK |
| Insert codeComment box | CmdE | CtrlE | CtrlE |
No shortcuts match. Try fewer words, the key names only, or search every app.
Show the key map: which keys GitHub uses mostDarker orange = used by more shortcuts
GitHub repository shortcuts: find a file, blame and permalinks
- Open the web editor in a new tabMacShift.WindowsShift.LinuxShift.
- Go to ActionsMacG,AWindowsG,ALinuxG,A
- Go to ProjectsMacG,BWindowsG,BLinuxG,B
- Go to the wikiMacG,WWindowsG,WLinuxG,W
- Go to DiscussionsMacG,GWindowsG,GLinuxG,G
- Go to a lineMacLWindowsLLinuxL
- Search in the fileMacCmdFWindowsCtrlFLinuxCtrlF
- Switch branch or tagMacWWindowsWLinuxW
- 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
- Create an issueMacCWindowsCLinuxC
- Filter the listMacUWindowsULinuxU
- Next itemMacJWindowsJLinuxJ
- Previous itemMacKWindowsKLinuxK
- Open the itemMacOorEnterWindowsOorEnterLinuxOorEnter
- Set labelsMacLWindowsLLinuxL
- Set assigneesMacAWindowsALinuxA
- Request a reviewerMacQWindowsQLinuxQ
- Set a milestoneMacMWindowsMLinuxM
- Quote the selected text in a replyMacRWindowsRLinuxR
- 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.
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.
Markdown shortcuts in GitHub comments