Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
GitHub Docs

Keyboard shortcuts

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, seeManaging accessibility settings.

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, seeGitHub Command Palette.

The following sections list some of the available keyboard shortcuts, organized by the pages where you can use them on GitHub.

Site wide shortcuts

Keyboard shortcutDescription
S or/Focus the search bar. For more information, seeAbout searching on GitHub.
GNGo to your notifications. For more information, seeAbout notifications.
Option+ (Mac) or
Alt+ (Windows/Linux)
Move focus from an element to its hovercard
EscWhen focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in

Repositories

Keyboard shortcutDescription
GCGo to theCode tab
GIGo to theIssues tab. For more information, seeAbout issues.
GPGo to thePull requests tab. For more information, seeAbout pull requests.
GAGo to theActions tab. For more information, seeWriting workflows.
GWGo to theWiki tab. For more information, seeAbout wikis.
GGGo to theDiscussions tab. For more information, seeAbout discussions.

Source code editing

Keyboard shortcutDescription
.Opens a repository or pull request in the github.dev editor, in the same browser tab. You must be signed in to use the editor. For more information, seeThe github.dev web-based editor.
>Opens a repository or pull request in the github.dev editor, in a new browser tab. You must be signed in to use the editor. For more information, seeThe github.dev 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 theEdit 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 theEdit file andPreview changes tabs
Command+S (Mac) or
Ctrl+S (Windows/Linux)
Write a commit message

For more keyboard shortcuts, see theCodeMirror 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, seeGetting permanent links to files.
iShow or hide comments on diffs. For more information, seeCommenting on a pull request.
aShow or hide annotations on diffs
bOpen blame view. For more information, seeViewing and understanding files.

Navigating within code files

If you view a code file in a repository using theCode view and click on any line in the file, you will see a cursor. You can then navigate within the content of the file, also known as a blob (binary large object), using keyboard shortcuts.

Keyboard shortcutDescription
Shift+JHighlights the line that is currently selected by the cursor within the code file
Shift+Option+C (Mac) or
Shift+Alt+C (Windows/Linux)
If a line of code is currently selected, this shortcut opens the line menu for that line, appearing under to the left of the line
Command+Enter (Mac) or
Control+Enter (Windows/Linux)
Highlights the code symbol currently selected by the cursor and all other occurrences of the symbol in the code, and shows the symbol in the symbols pane

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 theWrite andPreview comment tabs
Command+Shift+V (Mac) or
Ctrl+Shift+V (Windows/Linux)
Pastes HTML link as plain text
Command+Shift+Option+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 thenCtrl+[saved reply number]Opens saved replies menu and then autofills comment field with a saved reply. For more information, seeAbout 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, seeReviewing proposed changes in a pull request.
RQuote the selected text in your reply. For more information, seeBasic 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, seeFiltering and searching issues and pull requests.
UFilter by author
LFilter by or edit labels. For more information, seeFiltering and searching issues and pull requests.
Alt and clickWhile filtering by labels, exclude labels. For more information, seeFiltering and searching issues and pull requests.
MFilter by or edit milestones. For more information, seeFiltering issues and pull requests by milestone.
AFilter by or edit assignee. For more information, seeFiltering and searching issues and pull requests.
O orEnterOpen issue

Issues and pull requests

Keyboard shortcutDescription
QRequest a reviewer. For more information, seeRequesting a pull request review.
MSet a milestone. For more information, seeAssociating milestones with issues and pull requests.
LApply a label. For more information, seeManaging labels.
ASet an assignee. For more information, seeAssigning issues and pull requests to other GitHub users.
XLink an issue or pull request from the same repository. For more information, seeLinking a pull request to an issue.
Command+Shift+P (Mac) or
Ctrl+Shift+P (Windows/Linux)
Toggles between theWrite andPreview tabs
Alt and clickWhen creating an issue from a task list, open the new issue form in the current tab by holdingAlt and clicking the in the upper-right corner of the task. For more information, seeAbout tasklists.
Shift and clickWhen creating an issue from a task list, open the new issue form in a new tab by holdingShift and clicking the in the upper-right corner of the task. For more information, seeAbout tasklists.
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 holdingCommand orCtrl+Shift and clicking the in the upper-right corner of the task. For more information, seeAbout tasklists.
Option+Shift+c (Mac) or
Alt+Shift+c (Windows/Linux)
Create a new sub-issue. SeeAdding sub-issues.
Option,Shift+a (Mac) or
Alt+Shift+a (Windows/Linux)
Add an existing issue as sub-issue. SeeAdding sub-issues.
Option+Shift+p (Mac) or
Alt+Shift+p (Windows/Linux)
Edit parent issue.

"Files changed" tab in pull requests

Keyboard shortcutDescription
COpen theCommits dropdown menu to filter which commits are shown in the diffs
TMove your cursor to the "Filter changed files" field
Command+Shift+Enter (Mac) orCtrl+Shift+Enter (Windows/Linux)Submit a review comment
Option and click (Mac) orAlt and click (Windows/Linux)Toggle between collapsing and expanding all outdated or resolved review comments in a pull request (for example, by holding downAlt and clickingShow outdated orHide outdated)
Click, thenShift and clickComment on multiple lines of a pull request by clicking a line number, holdingShift, then clicking another line number. For more information, seeCommenting on a pull request.

Projects

Navigating a project

Keyboard shortcutDescription
Command+f (Mac) orCtrl+f (Windows/Linux)Focus filter field
Move focus to the left
Move focus to the right
Move focus up
Move focus down

Manipulating a project

Keyboard shortcutDescription
EnterToggle edit mode for the focused cell
EscapeCancel editing for the focused cell
Command+Shift+\(Mac) orCtrl+Shift+\(Windows/Linux)Open row actions menu
Shift+SpaceSelect item
Shift+Add cell or card below to selection
Shift+Add cell or card above to selection
SpaceOpen selected item
eArchive selected items

Moving cards on the board layout

Keyboard shortcutDescription
Enter orShift+SpaceStart moving the selected card(s)
EscCancel the move in progress
EnterComplete the move in progress
Move a single card down
Command+ or
Ctrl+ (Windows/Linux)
Move a single card to the bottom of the column
Move a single card up
Command+ (Mac) or
Ctrl+ (Windows/Linux)
Move a single card to the top of the column
Move card(s) left
Command+ (Mac) or
Ctrl+ (Windows/Linux)
Move card(s) to the leftmost column
Move card(s) right
Command+ (Mac) or
Ctrl+ (Windows/Linux)
Move card(s) to the rightmost column

GitHub Actions

Keyboard shortcutDescription
Command+Space (Mac) or
Ctrl+Space (Windows/Linux)
In the workflow editor, get suggestions for your workflow file.
GFGo to the workflow file
Shift+T orTToggle timestamps in logs
Shift+F orFToggle 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
orHScroll left
orLScroll right
orKScroll up
orJScroll 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

[8]ページ先頭

©2009-2025 Movatter.jp