Skip to content

Keyboard Shortcuts

Site wide shortcuts

ShortcutAction
SFocus the search bar
G NGo to your notifications
HOpens and focuses on a user, issue, or pull request hovercard
EscWhen focused on above, closes hovercard

Repositories

ShortcutAction
G CGo to the Code tab
G IGo to the Issues tab
G PGo to the Pull requests tab
G BGo to the Projects tab
G WGo to the Wiki tab

Source code editing

ShortcutAction
Ctrl FStart searching in file editor
Ctrl GFind next
Ctrl Shift GFind previous
Ctrl Shift FReplace
Ctrl Shift RReplace all
Alt GJump to line
Ctrl ZUndo
Ctrl YRedo

Source code browsing

ShortcutAction
TActivates the file finder
LJump to a line in your code
WSwitch to a new branch or tag
YExpand a URL to its canonical form
IShow or hide comments on diffs
BOpen blame view

Comments

ShortcutAction
Ctrl BInserts Markdown formatting for bolding text
Ctrl IInserts Markdown formatting for italicizing text
Ctrl KInserts Markdown formatting for creating a link
Ctrl Shift PToggles between the Write and Preview comment tabs
Ctrl EnterSubmits a comment
Ctrl .Opens saved replies menu and then autofills comment field with a saved reply
Ctrl GInserts a suggestions
RQuote the selected text in your reply

Issue and pull request lists

ShortcutAction
CCreate an issue
Ctrl /Focus your cursor on the issues or pull requests search bar
UFilter by author
LFilter by or edit labels
MFilter by or edit milestones
AFilter by or edit assignee
OOpen issue

Issues and pull requests

ShortcutAction
QRequest a reviewer
MSet a milestone
LApply a label
ASet an assignee

Changes in pull requests

ShortcutAction
COpen the list of commits in the pull request
TOpen the list of changed files in the pull request
JMove selection down in the list
KMove selection up in the list
Ctrl Shift EnterAdd a single comment on a pull request diff
Alt (click)Toggle between collapsing and expanding all outdated review comments in a pull request

Project boards

ShortcutAction
Enter/SpaceStart moving the focused column
EscCancel the move in progress
EnterComplete the move in progress
Left/HMove column to the left
Ctrl Left/HMove column to the leftmost position
Right/LMove column to the right
Ctrl Right/LMove column to the rightmost position
Enter/SpaceStart moving the focused card
EscCancel the move in progress
EnterComplete the move in progress
Down/JMove card down
Ctrl Down/JMove card to the bottom of the column
Up/KMove card up
Ctrl Up/KMove card to the top of the column
Left/HMove card to the bottom of the column on the left
Shift Left/HMove card to the top of the column on the left
Ctrl Left/HMove card to the bottom of the leftmost column
Ctrl Shift Left/HMove card to the top of the leftmost column
RightMove card to the bottom of the column on the right
Shift Right/LMove card to the top of the column on the right
Ctrl Right/LMove card to the bottom of the rightmost column
Ctrl Shift Right/LMove card to the top of the rightmost column

Notifications

ShortcutAction
E/L/YMark as read
Shift MMute thread

Network graph

ShortcutAction
Left/HScroll left
Right/LScroll right
Up/KScroll up
Down/JScroll down
Shift Left/HScroll all the way left
Shift Right/LScroll all the way right
Shift Up/KScroll all the way up
Shift Down/JScroll all the way down

Also see