Skip to main content
GitHub Docs
  • All products
  • Get started
    • Quickstart
      • Hello World
      • Set up Git
      • Create a repo
      • Fork a repo
      • GitHub flow
      • Contributing to projects
      • Be social
      • Communicating on GitHub
      • GitHub glossary
      • Git cheatsheet
      • Learning resources
    • Onboarding
      • Getting started with your GitHub account
      • Getting started with GitHub Team
      • Getting started with GitHub Enterprise Cloud
    • Learning about GitHub
      • GitHub’s products
      • Docs versions
      • GitHub language support
      • Types of GitHub accounts
      • Access permissions
      • GitHub Advanced Security
      • Changes to GitHub plans
    • Signing up for GitHub
      • Sign up for a new GitHub account
      • Verify your email address
      • Enterprise Cloud trial
      • Enterprise Server trial
    • Using GitHub
      • Feature preview
      • Supported browsers
      • GitHub CLI
      • GitHub Desktop
      • GitHub Mobile
      • Keyboard shortcuts
      • GitHub Command Palette
      • Connectivity problems
    • Writing on GitHub
      • Start writing on GitHub
        • Write & format on GitHub
        • Basic formatting syntax
      • Work with advanced formatting
        • Organized data with tables
        • Collapsed sections
        • Create code blocks
        • Create diagrams
        • Mathematical expressions
        • Auto linked references
        • Attaching files
        • Permanent links to code
        • Using keywords in issues and pull requests
      • Work with saved replies
        • About saved replies
        • Creating a saved reply
        • Editing a saved reply
        • Deleting a saved reply
        • Using saved replies
      • Share content with gists
        • Creating gists
        • Forking and cloning gists
    • Importing your projects
      • Import code to GitHub
        • About GitHub Importer
        • Use GitHub Importer
        • Update author GitHub Importer
        • Import repo locally
        • Add locally hosted code
        • Code migration tools
      • Work with Subversion on GitHub
        • Subversion & Git differences
        • Support for Subversion clients
        • Properties supported by GitHub
    • Explore projects
      • Contribute to open source
      • Save repos with stars
      • Following people
      • Following organizations
    • Getting started with Git
      • Set your username
      • Caching credentials
      • Git passwords
      • macOS Keychain credentials
      • Git workflows
      • About remote repositories
      • Manage remote repositories
      • Associate text editors
      • Handle line endings
      • Ignoring files
    • Using Git
      • About Git
      • Push commits to a remote
      • Get changes from a remote
      • Non-fast-forward error
      • Splitting a subfolder
      • About Git subtree merges
      • About Git rebase
      • Git rebase
      • Resolve conflicts after rebase
      • Special characters in names
    • Customize your workflow
      • Exploring integrations
        • About integrations
        • About webhooks
        • About GitHub Marketplace
        • Extensions & integrations
      • Install Marketplace apps
        • Install app personal account
        • Install app organization
    • Privacy on GitHub
      • GitHub's use of your data
      • Request account archive
      • Manage data use for private repo
      • GitHub Archive program
  • Get started/
  • Using GitHub/
  • Keyboard shortcuts
 
GitHub Docs
  • Get started/
  • Using GitHub/
  • Keyboard shortcuts
Get started
    • Get started
    • Account and profile
    • Authentication
    • Repositories
    • Enterprise administrators
    • Billing and payments
    • Site policy
    • Organizations
    • Code security
    • Pull requests
    • GitHub Issues
    • GitHub Actions
    • GitHub Copilot
    • GitHub Codespaces
    • GitHub Packages
    • Search on GitHub
    • Developers
    • REST API
    • GraphQL API
    • GitHub CLI
    • GitHub Discussions
    • GitHub Sponsors
    • Building communities
    • GitHub Pages
    • Education
    • GitHub Desktop
    • GitHub Support
    • Atom
    • Electron
    • CodeQL
    • npm
Free, Pro, & Team
    • Free, Pro, & Team
    • Enterprise Cloud
    • Enterprise Server 3.6
    • Enterprise Server 3.5
    • Enterprise Server 3.4
    • Enterprise Server 3.3
    • Enterprise Server 3.2
    • GitHub AE
    • All Enterprise Server releases
    • About versions

 

Keyboard shortcuts

In this article

  • About keyboard shortcuts
  • Site wide shortcuts
  • Repositories
  • Source code editing
  • Source code browsing
  • Comments
  • Issue and pull request lists
  • Issues and pull requests
  • Changes in pull requests
  • Projects
  • Projects (classic)
  • GitHub Actions
  • Notifications
  • Network graph

Nearly every page on GitHub has a keyboard shortcut to perform actions faster.

About keyboard shortcuts

Typing ? on GitHub brings up a dialog box that lists the keyboard shortcuts available for that page. You can use these keyboard shortcuts to perform actions across the site without using your mouse to navigate.

You can disable character key shortcuts, while still allowing shortcuts that use modifier keys, in your accessibility settings. For more information, see "Managing accessibility settings."

Below is a list of some of the available keyboard shortcuts.

The GitHub Command Palette also gives you quick access to a wide range of actions, without the need to remember keyboard shortcuts. For more information, see "GitHub Command Palette."

Site wide shortcuts

Keyboard shortcutDescription
S or /Focus the search bar. For more information, see "About searching on GitHub."
G NGo to your notifications. For more information, see "About notifications."
EscWhen focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in
Command+K (Mac) or
Ctrl+K (Windows/Linux)
Opens the GitHub Command Palette. If you are editing Markdown text, open the command palette with Command+Option+K or Ctrl+Alt+K. For more information, see "GitHub Command Palette."

Repositories

Keyboard shortcutDescription
G CGo to the Code tab
G IGo to the Issues tab. For more information, see "About issues."
G PGo to the Pull requests tab. For more information, see "About pull requests."
G AGo to the Actions tab. For more information, see "About Actions."
G BGo to the Projects tab. For more information, see "About project boards."
G WGo to the Wiki tab. For more information, see "About wikis."
G GGo to the Discussions tab. For more information, see "About discussions."

Source code editing

Keyboard shortcutDescription
.Opens a repository or pull request in the web-based editor. For more information, see "Web-based editor."
Command+B (Mac) or
Ctrl+B (Windows/Linux)
Inserts Markdown formatting for bolding text
Command+I (Mac) or
Ctrl+I (Windows/Linux)
Inserts Markdown formatting for italicizing text
Command+K (Mac) or
Ctrl+K (Windows/Linux)
Inserts Markdown formatting for creating a link
Command+Shift+7 (Mac) or
Ctrl+Shift+7 (Windows/Linux)
Inserts Markdown formatting for an ordered list
Command+Shift+8 (Mac) or
Ctrl+Shift+8 (Windows/Linux)
Inserts Markdown formatting for an unordered list
Command+Shift+. (Mac) or
Ctrl+Shift+. (Windows/Linux)
Inserts Markdown formatting for a quote
EOpen source code file in the Edit file tab
Command+F (Mac) or
Ctrl+F (Windows/Linux)
Start searching in file editor
Command+G (Mac) or
Ctrl+G (Windows/Linux)
Find next
Command+Shift+G (Mac) or
Ctrl+Shift+G (Windows/Linux)
Find previous
Command+Option+F (Mac) or
Ctrl+Shift+F (Windows/Linux)
Replace
Command+Shift+Option+F (Mac) or
Ctrl+Shift+R (Windows/Linux)
Replace all
Alt+GJump to line
Command+Z (Mac) or
Ctrl+Z (Windows/Linux)
Undo
Command+Y (Mac) or
Ctrl+Y (Windows/Linux)
Redo
Command+Shift+PToggles between the Edit file and Preview changes tabs
Command+S (Mac) or
Ctrl+S (Windows/Linux)
Write a commit message

For more keyboard shortcuts, see the CodeMirror documentation.

Source code browsing

Keyboard shortcutDescription
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. For more information, see "Getting permanent links to files."
IShow or hide comments on diffs. For more information, see "Commenting on the diff of a pull request."
AShow or hide annotations on diffs
BOpen blame view. For more information, see "Tracing changes in a file."

Comments

Keyboard shortcutDescription
Command+B (Mac) or
Ctrl+B (Windows/Linux)
Inserts Markdown formatting for bolding text
Command+I (Mac) or
Ctrl+I (Windows/Linux)
Inserts Markdown formatting for italicizing text
Command+E (Mac) or
Ctrl+E (Windows/Linux)
Inserts Markdown formatting for code or a command within a line
Command+K (Mac) or
Ctrl+K (Windows/Linux)
Inserts Markdown formatting for creating a link
Command+V (Mac) or
Ctrl+V (Windows/Linux)
Creates a Markdown link when applied over highlighted text
Command+Shift+P (Mac) or
Ctrl+Shift+P (Windows/Linux)
Toggles between the Write and Preview comment tabs
Command+Shift+V (Mac) or
Ctrl+Shift+V (Windows/Linux)
Pastes HTML link as plain text
Command+Shift+Opt+V (Mac) or
Ctrl+Shift+Alt+V (Windows/Linux)
Pastes HTML link as plain text
Command+Shift+7 (Mac) or
Ctrl+Shift+7 (Windows/Linux)
Inserts Markdown formatting for an ordered list
Command+Shift+8 (Mac) or
Ctrl+Shift+8 (Windows/Linux)
Inserts Markdown formatting for an unordered list
Command+Enter (Mac) or
Ctrl+Enter (Windows/Linux)
Submits a comment
Ctrl+. and then Ctrl+[saved reply number]Opens saved replies menu and then autofills comment field with a saved reply. For more information, see "About saved replies."
Command+Shift+. (Mac) or
Ctrl+Shift+. (Windows/Linux)
Inserts Markdown formatting for a quote
Command+G (Mac) or
Ctrl+G (Windows/Linux)
Insert a suggestion. For more information, see "Reviewing proposed changes in a pull request."
RQuote the selected text in your reply. For more information, see "Basic writing and formatting syntax."

Issue and pull request lists

Keyboard shortcutDescription
CCreate an issue
Command+/ (Mac) or
Ctrl+/ (Windows/Linux)
Focus your cursor on the issues or pull requests search bar. For more information, see "Filtering and searching issues and pull requests."
UFilter by author
LFilter by or edit labels. For more information, see "Filtering issues and pull requests by labels."
Alt and clickWhile filtering by labels, exclude labels. For more information, see "Filtering issues and pull requests by labels."
MFilter by or edit milestones. For more information, see "Filtering issues and pull requests by milestone."
AFilter by or edit assignee. For more information, see "Filtering issues and pull requests by assignees."
O or EnterOpen issue

Issues and pull requests

Keyboard shortcutDescription
QRequest a reviewer. For more information, see "Requesting a pull request review."
MSet a milestone. For more information, see "Associating milestones with issues and pull requests."
LApply a label. For more information, see "Applying labels to issues and pull requests."
ASet an assignee. For more information, see "Assigning issues and pull requests to other GitHub users."
XLink an issue or pull request from the same repository. For more information, see "Linking a pull request to an issue."
Command+Shift+P (Mac) or
Ctrl+Shift+P (Windows/Linux)
Toggles between the Write and Preview tabs
Alt and clickWhen creating an issue from a task list, open the new issue form in the current tab by holding Alt and clicking the in the upper-right corner of the task. For more information, see "About task lists."
Shift and clickWhen creating an issue from a task list, open the new issue form in a new tab by holding Shift and clicking the in the upper-right corner of the task. For more information, see "About task lists."
Command and click (Mac) or
Ctrl+Shift and click (Windows/Linux)
When creating an issue from a task list, open the new issue form in the new window by holding Command or Ctrl+Shift and clicking the in the upper-right corner of the task. For more information, see "About task lists."

Changes in pull requests

Keyboard shortcutDescription
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
Command+Shift+EnterAdd a single comment on a pull request diff
Alt and clickToggle between collapsing and expanding all outdated review comments in a pull request by holding down Alt and clicking Show outdated or Hide outdated.
Click, then Shift and clickComment on multiple lines of a pull request by clicking a line number, holding Shift, then clicking another line number. For more information, see "Commenting on a pull request."

Projects

Navigating a project

Keyboard shortcutDescription
⌘+f (Mac) or Ctrl+f (Windows/Linux)Focus filter field
�Move cell focus to the left
→Move cell focus to the right
↑Move cell focus up
↓Move cell focus down

Manipulating a project

Keyboard shortcutDescription
EnterToggle edit mode for the focused cell
EscapeCancel editing for the focused cell
⌘+Shift+\ (Mac) or Ctrl+Shift+\ (Windows/Linux)Open row actions menu
Shift+SpaceSelect item
SpaceOpen selected item
eArchive selected items

Projects (classic)

Moving a column

Keyboard shortcutDescription
Enter or SpaceStart moving the focused column
EscCancel the move in progress
EnterComplete the move in progress
� or HMove column to the left
Command+� or Command+H (Mac) or
Ctrl+� or Ctrl+H (Windows/Linux)
Move column to the leftmost position
→ or LMove column to the right
Command+→ or Command+L (Mac) or
Ctrl+→ or Ctrl+L (Windows/Linux)
Move column to the rightmost position

Moving a card

Keyboard shortcutDescription
Enter or SpaceStart moving the focused card
EscCancel the move in progress
EnterComplete the move in progress
↓ or JMove card down
Command+↓ or Command+J (Mac) or
Ctrl+↓ or Ctrl+J (Windows/Linux)
Move card to the bottom of the column
↑ or KMove card up
Command+↑ or Command+K (Mac) or
Ctrl+↑ or Ctrl+K (Windows/Linux)
Move card to the top of the column
� or HMove card to the bottom of the column on the left
Shift+� or Shift+HMove card to the top of the column on the left
Command+� or Command+H (Mac) or
Ctrl+� or Ctrl+H (Windows/Linux)
Move card to the bottom of the leftmost column
Command+Shift+� or Command+Shift+H (Mac) or
Ctrl+Shift+� or Ctrl+Shift+H (Windows/Linux)
Move card to the top of the leftmost column
→Move card to the bottom of the column on the right
Shift+→ or Shift+LMove card to the top of the column on the right
Command+→ or Command+L (Mac) or
Ctrl+→ or Ctrl+L (Windows/Linux)
Move card to the bottom of the rightmost column
Command+Shift+→ or Command+Shift+L (Mac) or
Ctrl+Shift+→ or Ctrl+Shift+L (Windows/Linux)
Move card to the bottom of the rightmost column

Previewing a card

Keyboard shortcutDescription
EscClose the card preview pane

GitHub Actions

Keyboard shortcutDescription
Command+Space (Mac) or
Ctrl+Space (Windows/Linux)
In the workflow editor, get suggestions for your workflow file.
G FGo to the workflow file
Shift+T or TToggle timestamps in logs
Shift+F or FToggle full-screen logs
EscExit full-screen logs

Notifications

Keyboard shortcutDescription
EMark as done
Shift+UMark as unread
Shift+IMark as read
Shift+MUnsubscribe

Network graph

Keyboard shortcutDescription
� or HScroll left
→ or LScroll right
↑ or KScroll up
↓ or JScroll down
Shift+� (Mac) or
Shift+H (Windows/Linux)
Scroll all the way left
Shift+→ (Mac) or
Shift+L (Windows/Linux)
Scroll all the way right
Shift+↑ (Mac) or
Shift+K (Windows/Linux)
Scroll all the way up
Shift+↓ (Mac) or
Shift+J (Windows/Linux)
Scroll all the way down

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

Still need help?

Ask the GitHub community
Contact support
  • © 2022 GitHub, Inc.
  • Terms
  • Privacy
  • Security
  • Status
  • Help
  • Contact GitHub
  • Pricing
  • Developer API
  • Training
  • Blog
  • About