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 shortcutsRepository tabs
Sequence shortcuts that jump straight to repository sections.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Go to Code tab | GC | GC | GC |
| Go to Issues tab | GI | GI | GI |
| Go to Pull requests tab | GP | GP | GP |
| Go to Actions tab | GA | GA | GA |
| Go to Wiki tab | GW | GW | GW |
| Go to Discussions tab | GG | GG | GG |
| Go to Security and quality tab | GS | GS | GS |
Issues and pull requests
Creating, opening, and metadata triage on lists and issue pages.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Create an issueWorks on issue and pull request lists. | C | C | C |
| Open highlighted issue or pull requestEnter also opens it. | O | O | O |
| Request a reviewer | Q | Q | Q |
| Set a milestone | M | M | M |
| Set assignee | A | A | A |
| Apply or filter by label | L | L | L |
| Link an issue or pull request | X | X | X |
| Submit a review commentIn the Files changed tab of a pull request. | CtrlShiftEnter | CmdShiftEnter | CtrlShiftEnter |
Comments and markdown
Format a comment, open the editor, submit it, or move through markdown-friendly controls.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Submit comment | CtrlEnter | CmdEnter | CtrlEnter |
| Toggle Write and Preview tabs | CtrlShiftP | CmdShiftP | CtrlShiftP |
| Quote selected text in your reply | R | R | R |
| Insert bold Markdown | CtrlB | CmdB | CtrlB |
| Insert italic Markdown | CtrlI | CmdI | CtrlI |
| Insert inline code Markdown | CtrlE | CmdE | CtrlE |
| Insert a Markdown link | CtrlK | CmdK | CtrlK |
| Insert an ordered list | CtrlShift7 | CmdShift7 | CtrlShift7 |
| Insert an unordered list | CtrlShift8 | CmdShift8 | CtrlShift8 |
| Insert a Markdown quote | CtrlShift. | CmdShift. | CtrlShift. |
| Create a Markdown link from selected text | CtrlV | CmdV | CtrlV |
| Insert a suggested change | CtrlG | CmdG | CtrlG |
Source code browsing
Use single-key actions to move through file views, diffs, blame, and the code around a change.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Activate the file finder | T | T | T |
| Jump to a line in your code | L | L | L |
| Open blame view | B | B | B |
| Expand a file URL to its canonical form | Y | Y | Y |
| Show or hide diff comments | I | I | I |
| Show or hide diff annotations | A | A | A |
| Open the source file in the editor | E | E | E |
| Switch to a branch or tag | W | W | W |
| Start searching in the file editor | CtrlF | CmdF | CtrlF |
| Find the next match | CtrlG | CmdG | CtrlG |
| Find the previous match | CtrlShiftG | CmdShiftG | CtrlShiftG |
| Replace in the file editor | CtrlShiftF | CmdOptionF | CtrlShiftF |
| Replace all in the file editor | CtrlShiftR | CmdShiftOptionF | CtrlShiftR |
| Jump to a line in the file editor | AltG | AltG | AltG |
| Undo in the file editor | CtrlZ | CmdZ | CtrlZ |
| Redo in the file editor | CtrlY | CmdY | CtrlY |
Notifications
Open notification views and move through the updates waiting for your attention.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Mark notification as done | E | E | E |
| Mark notification as readShift+U marks it unread again. | ShiftI | ShiftI | ShiftI |
| Mark notification as unread | ShiftU | ShiftU | ShiftU |
| Unsubscribe from the notification | ShiftM | ShiftM | ShiftM |
Issue and pull request lists
Filter lists by author, label, milestone, or assignee, then open the selected issue or pull request.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Focus the issue or pull request filter | Ctrl/ | Cmd/ | Ctrl/ |
| Filter by author | U | U | U |
| Filter by or edit labels | L | L | L |
| Filter by or edit milestones | M | M | M |
| Filter by or edit assignee | A | A | A |
Projects and Actions
Move through project boards and workflow logs when GitHub is acting more like an operations workspace.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Focus the project filter field | CtrlF | CmdF | CtrlF |
| Toggle edit mode for a project cell | Enter | Enter | Enter |
| Select a project item | ShiftSpace | ShiftSpace | ShiftSpace |
| Open a selected project item | Space | Space | Space |
| Go to the workflow file | GF | GF | GF |
| Toggle timestamps in workflow logs | T | T | T |
| Toggle full-screen workflow logs | F | F | F |
| Get suggestions in the workflow editor | CtrlSpace | CmdSpace | CtrlSpace |
| Open the project row actions menu | CtrlShift\ | CmdShift\ | CtrlShift\ |
| Add the cell or card below to the selection | ShiftDown | ShiftDown | ShiftDown |
| Add the cell or card above to the selection | ShiftUp | ShiftUp | ShiftUp |
| Archive selected project items | E | E | E |
Pull request files changed
Filter changed files, change the commit scope, and submit review comments while inspecting a pull request.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Open the commits filter | C | C | C |
| Focus the changed-files filter | T | T | T |
| Submit a review comment from Files changed | CtrlShiftEnter | CmdShiftEnter | CtrlShiftEnter |
Network graph
Scroll the repository network graph in small steps or jump to an edge of the graph.
| Action | Windows | macOS | Linux |
|---|---|---|---|
| Scroll the network graph leftH also scrolls left. | Left | Left | Left |
| Scroll the network graph rightL also scrolls right. | Right | Right | Right |
| Scroll the network graph upK also scrolls up. | Up | Up | Up |
| Scroll the network graph downJ also scrolls down. | Down | Down | Down |
| Scroll all the way left | ShiftH | ShiftLeft | ShiftH |
| Scroll all the way right | ShiftL | ShiftRight | ShiftL |
| Scroll all the way up | ShiftK | ShiftUp | ShiftK |
| Scroll all the way down | ShiftJ | ShiftDown | ShiftJ |