--- stage: Create group: Editor info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments type: reference disqus_identifier: 'https://docs.gitlab.com/ee/workflow/shortcuts.html' --- # GitLab keyboard shortcuts **(FREE)** GitLab has several keyboard shortcuts you can use to access its different features. To display a window in GitLab that lists its keyboard shortcuts, use one of the following methods: - Press ?. - In the Help menu in the top right of the application, select **Keyboard shortcuts**. Although [global shortcuts](#global-shortcuts) work from any area of GitLab, you must be in specific pages for the other shortcuts to be available, as explained in each section. ## Global shortcuts These shortcuts are available in most areas of GitLab: | Keyboard shortcut | Description | |---------------------------------|-------------| | ? | Show or hide the shortcut reference sheet. | | Shift + p | Go to your Projects page. | | Shift + g | Go to your Groups page. | | Shift + a | Go to your Activity page. | | Shift + l | Go to your Milestones page. | | Shift + s | Go to your Snippets page. | | s / / | Put cursor in the search bar. | | Shift + i | Go to your Issues page. | | Shift + m | Go to your [Merge requests](project/merge_requests/index.md) page. | | Shift + t | Go to your To-Do List page. | | p then b | Show or hide the Performance Bar. | | g then x | Toggle between [GitLab](https://gitlab.com/) and [GitLab Next](https://next.gitlab.com/) (GitLab SaaS only). | | . | Open the [Web IDE](project/web_ide/index.md). | Additionally, the following shortcuts are available when editing text in text fields (for example, comments, replies, issue descriptions, and merge request descriptions): | macOS shortcut | Windows shortcut | Description | |----------------|------------------|-------------| | | | 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. | | Command + Shift + p | Control + Shift + p | Toggle Markdown preview when editing text in a text field that has **Write** and **Preview** tabs at the top. | | Command + b | Control + b | Bold the selected text (surround it with `**`). | | Command + i | Control + i | Italicize the selected text (surround it with `_`). | | Command + Shift + s | Control + Shift + s | Strike through the selected text (surround it with `~~`). | | Command + k | Control + k | Add a link (surround the selected text with `[]()`). | The shortcuts for editing in text fields are always enabled, even if other keyboard shortcuts are disabled. ## Project These shortcuts are available from any page in a project. You must type them relatively quickly to work, and they take you to another page in the project. | Keyboard shortcut | Description | |-----------------------------|-------------| | g + p | Go to the project home page (**Project > Details**). | | g + v | Go to the project activity feed (**Project > Activity**). | | g + r | Go to the project releases list (**Project > Releases**). | | g + f | Go to the [project files](#project-files) list (**Repository > Files**). | | t | Go to the project file search page. (**Repository > Files**, select **Find Files**). | | g + c | Go to the project commits list (**Repository > Commits**). | | g + n | Go to the [repository graph](#repository-graph) page (**Repository > Graph**). | | g + d | Go to repository charts (**Analytics > Repository Analytics**). | | g + i | Go to the project issues list (**Issues > List**). | | i | Go to the New Issue page (**Issues**, select **New Issue** ). | | g + b | Go to the project issue boards list (**Issues > Boards**). | | g + m | Go to the project [merge requests](project/merge_requests/index.md) list (**Merge Requests**). | | g + j | Go to the CI/CD jobs list (**CI/CD > Jobs**). | | g + l | Go to the project metrics (**Monitor > Metrics**). | | g + e | Go to the project environments (**Deployments > Environments**). | | g + k | Go to the project Kubernetes cluster integration page (**Infrastructure > Kubernetes clusters**). Note that you must have at least [`maintainer` permissions](permissions.md) to access this page. | | g + s | Go to the project snippets list (**Snippets**). | | g + w | Go to the [project wiki](project/wiki/index.md) (**Wiki**), if enabled. | ### Issues and merge requests These shortcuts are available when viewing issues and [merge requests](project/merge_requests/index.md): | Keyboard shortcut | Description | |------------------------------|-------------| | e | Edit description. | | a | Change assignee. | | m | Change milestone. | | l | Change label. | | r | Start writing a comment. Pre-selected text is quoted in the comment. Can't be used to reply in a thread. | | n | Move to next unresolved discussion (merge requests only). | | p | Move to previous unresolved discussion (merge requests only). | | ] or j | Move to next file (merge requests only). | | [ or k | Move to previous file (merge requests only). | | b | Copy source branch name (merge requests only). | | . | Open the [Web IDE](project/web_ide/index.md). | ### Project files These shortcuts are available when browsing the files in a project (go to **Repository > Files**): | Keyboard shortcut | Description | |-------------------|-------------| | | Move selection up. | | | Move selection down. | | Enter | Open selection. | | Escape | Go back to file list screen (only while searching for files, **Repository > Files**, then select **Find File**). | | y | Go to file permalink (only while viewing a file). | | . | Open the [Web IDE](project/web_ide/index.md). | ### Web IDE These shortcuts are available when editing a file with the [Web IDE](project/web_ide/index.md): | macOS shortcut | Windows shortcut | Description | |---------------------------------|---------------------|-------------| | Command + p | Control + p | Search for, and then open another file for editing. | | Command + Enter | Control + Enter | Commit (when editing the commit message). | ### Repository graph These shortcuts are available when viewing the project [repository graph](project/repository/index.md#repository-history-graph) page (go to **Repository > Graph**): | Keyboard shortcut | Description | |--------------------------------------------------------------------|-------------| | or h | Scroll left. | | or l | Scroll right. | | or k | Scroll up. | | or j | Scroll down. | | Shift + or Shift + k | Scroll to top. | | Shift + or Shift + j | Scroll to bottom. | ### Wiki pages This shortcut is available when viewing a [wiki page](project/wiki/index.md): | Keyboard shortcut | Description | |-------------------|-------------| | e | Edit wiki page. | ### Content editor These shortcuts are available when editing a file with the [Content Editor](https://about.gitlab.com/direction/create/editor/content_editor/): | macOS shortcut | Windows shortcut | Description | |----------------|------------------|-------------| | Command + C | Control + C | Copy | | Command + X | Control + X | Cut | | Command + V | Control + V | Paste | | Command + Shift + V | Control + Shift + V | Paste without formatting | | Command + Z | Control + Z | Undo | | Command + Shift + V | Control + Shift + V | Redo | | Shift + Enter | Shift + Enter | Add a line break | #### Formatting | macOS shortcut | Windows/Linux shortcut | Description | |----------------|------------------------|-------------| | Command + b | Control + b | Bold | | Command + i | Control + i | Italic | | Command + Shift + x | Control + Shift + x | Strikethrough | | Command + e | Control + e | Code | | Command + Alt + 0 | Control + Alt + 0 | Apply normal text style | | Command + Alt + 1 | Control + Alt + 1 | Apply heading style 1 | | Command + Alt + 2 | Control + Alt + 2 | Apply heading style 2 | | Command + Alt + 3 | Control + Alt + 3 | Apply heading style 3 | | Command + Alt + 4 | Control + Alt + 4 | Apply heading style 4 | | Command + Alt + 5 | Control + Alt + 5 | Apply heading style 5 | | Command + Alt + 6 | Control + Alt + 6 | Apply heading style 6 | | Command + Shift + 7 | Control + Shift + 7 | Ordered list | | Command + Shift + 8 | Control + Shift + 8 | Bullet list | | Command + Shift + 9 | Control + Shift + 9 | Task list | | Command + Shift + b | Control + Shift + b | Blockquote | | Command + Alt + c | Control + Shift + c | Code block | | Command + , | Control + , | Subscript | | Command + . | Control + . | Superscript | | Tab | Tab | Indent list | | Shift + Tab | Shift + Tab | Outdent list | #### Text selection | macOS shortcut | Windows shortcut | Description | |----------------|------------------|-------------| | Command + a | Control + a | Select all | | Shift + | Shift + | Extend selection one character to left | | Shift + | Shift + | Extend selection one character to right | | Shift + | Shift + | Extend selection one line up | | Shift + | Shift + | Extend selection one line down | | Command + Shift + | Control + Shift + | Extend selection to the beginning of the document | | Command + Shift + | Control + Shift + | Extend selection to the end of the document | ### Filtered search These shortcuts are available when using a [filtered search input](search/index.md): | macOS shortcut | Windows shortcut | Description | |----------------------|----------------------------------------|-------------| | Command | Delete | Clear entire search filter. | | Option | Control + Delete | Clear one token at a time. | ## Epics **(PREMIUM)** These shortcuts are available when viewing [epics](group/epics/index.md): | Keyboard shortcut | Description | |-------------------|-------------| | r | Start writing a comment. Pre-selected text is quoted in the comment. Can't be used to reply in a thread. | | e | Edit description. | | l | Change label. | ## Disable keyboard shortcuts > [Introduced](https://gitlab.com/gitlab-org/gitlab/-/issues/22113) in GitLab 12.8. To disable keyboard shortcuts: 1. While viewing a page that supports keyboard shortcuts, and outside a text box, press ? to display the list of shortcuts. 1. Select **Toggle shortcuts**.