GitLab keyboard shortcuts

GitLab has many useful keyboard shortcuts to make it easier to access different features. You can see a modal listing keyboard shortcuts within GitLab itself by pressing ?, or clicking Keyboard shortcuts in the Help menu at the top right. From GitLab 12.8 onwards, keyboard shortcuts can be disabled using the Enable/Disable toggle in this modal window.

The Global Shortcuts work from any area of GitLab, but you must be in specific pages for the other shortcuts to be available, as explained in each section below.

Global Shortcuts

These shortcuts are available in most areas of GitLab

Keyboard ShortcutDescription
?Show/hide shortcut reference sheet.
Shift + pGo to your Projects page.
Shift + gGo to your Groups page.
Shift + aGo to your Activity page.
Shift + lGo to your Milestones page.
Shift + sGo to your Snippets page.
sPut cursor in the issues/merge requests search.
Shift + iGo to your Issues page.
Shift + mGo to your Merge requests page.
Shift + tGo to your To-Do List page.
p + bShow/hide the Performance Bar.

Additionally, the following shortcuts are available when editing text in text fields, for example comments, replies, issue descriptions, and merge request descriptions:

Keyboard ShortcutDescription
Edit your last comment. You must be in a blank text field below a thread, and you must already have at least one comment in the thread.
(Mac) / Ctrl + Shift + pToggle Markdown preview, when editing text in a text field that has Write and Preview tabs at the top.


These shortcuts are available from any page within a project. You must type them relatively quickly to work, and they will take you to another page in the project.

Keyboard ShortcutDescription
g + pGo to the project home page (Project > Details).
g + vGo to the project activity feed (Project > Activity).
g + rGo to the project releases list (Project > Releases).
g + fGo to the project files list (Repository > Files).
tGo to the project file search page. (Repository > Files, click Find Files).
g + cGo to the project commits list (Repository > Commits).
g + nGo to the repository graph page (Repository > Graph).
g + dGo to repository charts (Analytics > Repository Analytics).
g + iGo to the project issues list (Issues > List).
iGo to the New Issue page (Issues, click New Issue ).
g + bGo to the project issue boards list (Issues > Boards).
g + mGo to the project merge requests list (Merge Requests).
g + jGo to the CI/CD jobs list (CI/CD > Jobs).
g + lGo to the project metrics (Operations > Metrics).
g + eGo to the project environments (Operations > Environments).
g + kGo to the project Kubernetes cluster integration page (Operations > Kubernetes). Note that you must have at least maintainer permissions to access this page.
g + sGo to the project snippets list (Snippets).
g + wGo to the project wiki (Wiki), if enabled.

Issues and Merge Requests

These shortcuts are available when viewing issues and merge requests.

Keyboard ShortcutDescription
eEdit description.
aChange assignee.
mChange milestone.
lChange label.
rStart writing a comment. If any text is selected, it will be quoted in the comment. Can’t be used to reply within a thread.
nMove to next unresolved discussion (Merge requests only).
pMove to previous unresolved discussion (Merge requests only).
] or jMove to next file (Merge requests only).
[ or kMove to previous file (Merge requests only).

Project Files

These shortcuts are available when browsing the files in a project (navigate to Repository > Files):

Keyboard ShortcutDescription
Move selection up.
Move selection down.
enterOpen selection.
escGo back to file list screen (only while searching for files, Repository > Files then click on Find File).
yGo to file permalink (only while viewing a file).


These shortcuts are available when editing a file with the Web IDE:

Keyboard ShortcutDescription
(Mac) / Ctrl + pSearch for, and then open another file for editing.
(Mac) / Ctrl + EnterCommit (when editing the commit message).

Repository Graph

These shortcuts are available when viewing the project repository graph page (navigate to Repository > Graph):

Keyboard ShortcutDescription
or hScroll left.
or lScroll right.
or kScroll up.
or jScroll down.
Shift + or Shift + kScroll to top.
Shift + or Shift + jScroll to bottom.

Wiki pages

This shortcut is available when viewing a wiki page:

Keyboard ShortcutDescription
eEdit wiki page.


These shortcuts are available when viewing Epics:

Keyboard ShortcutDescription
rStart writing a comment. If any text is selected, it will be quoted in the comment. Can’t be used to reply within a thread.
eEdit description.
lChange label.