GitHub Cheatsheet - Code Hosting Platform Shortcut Reference

Daily GitHub work — reviewing PRs, hunting files, leaving comments — is full of small repeated clicks. This reference covers global navigation (s and /), repo and file search, code search, Issue/PR hotkeys, review commenting, and Markdown editing. The big wins are keyboard-opened search and quick PR-review commenting. For maintainers and reviewers who spend hours in the browser rather than the terminal. After reading you review, search and comment faster than the mouse allows.

Dev Tools·50 commands·Last updated 2026-07-21

Repository Browsing 8

T
Open file finder
Y
Convert URL to a permalink
W
Switch branch/tag selector
B
Open Issue template
I
Open Issues list
P
Open PRs list
C
Create new file
U
Up to parent directory

Code Browsing 7

1-9
Jump to a line number
Cmd + /
Toggle line comment
Cmd + F
Search file content
Cmd + G
Go to next match
Cmd + Shift + G
Go to previous match
Cmd + Shift + F
Search globally
Cmd + Shift + P
Open Command Palette

Issues & PRs 11

C
Create new Issue/PR
Cmd + Enter
Submit comment
Cmd + Option + Enter
Close and comment
Cmd + Shift + P
Toggle preview/edit
Cmd + B
Bold text
Cmd + I
Italic text
Cmd + K
Insert link
Cmd + Option + I
Insert image
Cmd + Shift + 7
Ordered list
Cmd + Shift + 8
Unordered list
Cmd + Shift + 9
Task list

Code Review 6

Cmd + Enter
Submit review
Cmd + Option + Enter
Approve PR
Cmd + Shift + Enter
Request changes
Cmd + Shift + 7
Add single-line comment
Cmd + Shift + 8
Add multi-line comment
Cmd + Shift + 9
Add pending comment

Markdown Editing 10

Cmd + B
Bold
Cmd + I
Italic
Cmd + K
Insert link
Cmd + Option + I
Insert image
Cmd + Shift + 7
Ordered list
Cmd + Shift + 8
Unordered list
Cmd + Shift + 9
Task list
Cmd + Shift + .
Quote
Cmd + Shift + C
Code block
Cmd + Shift + H
Heading

Tips

  • The T key opens the file finder - much faster than clicking, with fuzzy filename matching.
  • The Y key converts the URL to a permalink (commit hash) to share a specific version.
  • Cmd+Enter submits a comment, Cmd+Option+Enter closes and comments - no button clicking.
  • During code review, Cmd+Shift+7 quickly adds a single-line comment.
  • The Markdown editor supports Cmd+B bold, Cmd+I italic, Cmd+K insert link.
  • The ? key shows all keyboard shortcuts - check anytime.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Jul 21, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us