Skip to content

Conversation

@na027grab
Copy link

@na027grab na027grab commented Oct 28, 2020

title: Keyboard shortcuts
intro: 'Nearly every page on {% data variables.product.product_name %} has a keyboard shortcut to perform actions faster.'
redirect_from:

  • /articles/using-keyboard-shortcuts/
  • /categories/75/articles/
  • /categories/keyboard-shortcuts/
  • /articles/keyboard-shortcuts
    versions:
    free-pro-team: ''
    enterprise-server: '
    '

About keyboard shortcuts

Typing ? in {% data variables.product.product_name %} 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.

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

Site wide shortcuts

Keyboard shortcut Description
s or / Focus the search bar. For more information, see "About searching on {% data variables.product.company_short %}."
g n Go to your notifications. For more information, see {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}"About notifications{% else %}"About notifications{% endif %}."
esc When focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in

Repositories

Keyboard shortcut Description
g c Go to the Code tab
g i Go to the Issues tab. For more information, see "About issues."
g p Go to the Pull requests tab. For more information, see "About pull requests."{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}
g a Go to the Actions tab. For more information, see "About Actions."{% endif %}
g b Go to the Projects tab. For more information, see "About project boards."
g w Go to the Wiki tab. For more information, see "About wikis."

Source code editing

Keyboard shortcut Description
e Open source code file in the Edit file tab
control f or command f Start searching in file editor
control g or command g Find next
shift control g or shift command g Find previous
shift control f or command option f Replace
shift control r or shift command option f Replace all
alt g Jump to line
control z or command z Undo
control y or command y Redo
cmd + shift + p Toggles between the Edit file and Preview changes tabs

For more keyboard shortcuts, see the CodeMirror documentation.

Source code browsing

| Keyboard shortcut | Description
Street map messenger location

Why:

What's being changed:

Check off the following:

title: Keyboard shortcuts
intro: 'Nearly every page on {% data variables.product.product_name %} has a keyboard shortcut to perform actions faster.'
redirect_from:
  - /articles/using-keyboard-shortcuts/
  - /categories/75/articles/
  - /categories/keyboard-shortcuts/
  - /articles/keyboard-shortcuts
versions:
  free-pro-team: '*'
  enterprise-server: '*'
---


### About keyboard shortcuts

Typing <kbd>?</kbd> in {% data variables.product.product_name %} 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.

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

### Site wide shortcuts

| Keyboard shortcut | Description
|-----------|------------
|<kbd>s</kbd> or <kbd>/</kbd> | Focus the search bar. For more information, see "[About searching on {% data variables.product.company_short %}](/articles/about-searching-on-github)."
|<kbd>g</kbd> <kbd>n</kbd> | Go to your notifications. For more information, see {% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}"[About notifications](/github/managing-subscriptions-and-notifications-on-github/about-notifications){% else %}"[About notifications](/github/receiving-notifications-about-activity-on-github/about-notifications){% endif %}."
|<kbd>esc</kbd> | When focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in

### Repositories

| Keyboard shortcut | Description
|-----------|------------
|<kbd>g</kbd> <kbd>c</kbd> | Go to the **Code** tab
|<kbd>g</kbd> <kbd>i</kbd> | Go to the **Issues** tab. For more information, see "[About issues](/articles/about-issues)."
|<kbd>g</kbd> <kbd>p</kbd> | Go to the **Pull requests** tab. For more information, see "[About pull requests](/articles/about-pull-requests)."{% if currentVersion == "free-pro-team@latest" or currentVersion ver_gt "[email protected]" %}
|<kbd>g</kbd> <kbd>a</kbd> | Go to the **Actions** tab. For more information, see "[About Actions](/actions/getting-started-with-github-actions/about-github-actions)."{% endif %}
|<kbd>g</kbd> <kbd>b</kbd> | Go to the **Projects** tab. For more information, see "[About project boards](/articles/about-project-boards)."
|<kbd>g</kbd> <kbd>w</kbd> | Go to the **Wiki** tab. For more information, see "[About wikis](/articles/about-wikis)."

### Source code editing

| Keyboard shortcut | Description
|-----------|------------
|<kbd>e</kbd> | Open source code file in the **Edit file** tab
|<kbd>control f</kbd> or <kbd>command f</kbd> | Start searching in file editor
|<kbd>control g</kbd> or <kbd>command g</kbd> | Find next
|<kbd>shift control g</kbd> or <kbd>shift command g</kbd> | Find previous
|<kbd>shift control f</kbd> or <kbd>command option f</kbd> | Replace
|<kbd>shift control r</kbd> or <kbd>shift command option f</kbd> | Replace all
|<kbd>alt g</kbd> | Jump to line
|<kbd>control z</kbd> or <kbd>command z</kbd> | Undo
|<kbd>control y</kbd> or <kbd>command y</kbd> | Redo
|<kbd>cmd + shift + p</kbd> | Toggles between the **Edit file** and **Preview changes** tabs

For more keyboard shortcuts, see the [CodeMirror documentation](https://codemirror.net/doc/manual.html#commands).

### Source code browsing

| Keyboard shortcut | Description
Street map messenger location
@na027grab
Copy link
Author

lint Expected — Waiting for status to be reported
Required
staging Expected — Waiting for status to be reported
Required
test (content) Expected — Waiting for status to be reported
Required
test (meta) Expected — Waiting for status to be reported
Required
test (rendering) Expected — Waiting for status to be reported
Required
test (routing) Expected — Waiting for status to be reported
Required
test (unit) Expected — Waiting for status to be reported
Required street map location messenger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

invalid This issue/PR is invalid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants