GitLab Keyboard Shortcuts: The Complete List for Mac & Windows

GitLab keyboard shortcuts let you navigate and work in GitLab without reaching for the mouse jumping between projects, issues, and merge requests, reviewing code, and editing Markdown using key combinations alone. To see every shortcut available on your current screen, press ? anywhere in GitLab to open the built-in reference sheet.

This guide lists all GitLab keyboard shortcuts, verified against the latest version and organized by where they work global shortcuts that work anywhere, and context shortcuts for projects, issues, and merge requests. Mac and Windows keys are included throughout, plus a free PDF you can download below.

Global Shortcuts (work anywhere in GitLab)

ActionShortcut
Show or hide shortcut reference sheet?
Go to homepageShift + H
Go to your Projects pageShift + P
Go to your Groups pageShift + G
Go to your Activity pageShift + A
Go to your Milestones pageShift + L
Go to your Snippets pageShift + S
Go to your Issues pageShift + I
Go to your Merge requests pageShift + M
Go to your Review requests pageShift + R
Go to your To-Do ListShift + T
Focus the search barS or /
Focus the filter barF
Show or hide the Performance BarP then B
Toggle GitLab / GitLab Next (GitLab.com only)G then X
Open the Web IDE.
Open GitLab Duo ChatD
Hide tooltips or popoversEsc

Project Shortcuts (work inside any project)

ActionShortcut
Go to Project overviewG then O
Go to project ActivityG then V
Go to project ReleasesG then R
Go to project Files (repository)G then F
Open file search dialogT
Go to project CommitsG then C
Go to Repository graphG then N
Go to Repository analyticsG then D
Go to Work itemsG then I
Go to New Issue pageI
Go to Issue boardsG then B
Go to project Merge requestsG then M
Go to CI/CD PipelinesG then P
Go to CI/CD JobsG then J
Go to EnvironmentsG then E
Go to Kubernetes clusters (maintainer+)G then K
Go to project SnippetsG then S
Go to project Wiki (if enabled)G then W
Open the Web IDE.

Issue Shortcuts (when viewing an issue)

ActionShortcut
Edit descriptionE
Change assigneeA
Change milestoneM
Change labelL
Copy issue referenceC then R
Start writing a commentR
Go to next design
Go to previous design
Close the designEsc

Merge Request Shortcuts (when viewing an MR)

ActionmacOSWindows
Move to next file] or J] or J
Move to previous file[ or K[ or K
Search and jump to a fileCommand + PControl + P
Move to next open threadNN
Move to previous open threadPP
Copy source branch nameBB
Copy merge request referenceC then RC then R
Start writing a commentRR
Publish comment immediatelyShift + Command + EnterShift + Control + Enter
Add comment in pending state (review)Command + EnterControl + Enter
Move to next commitCC
Move to previous commitXX
Toggle file browserShift + FShift + F
Mark file as viewed / unviewedVV
Expand all files;;
Collapse all filesShift + ;Shift + ;
Toggle inline / side-by-side diffShift + DShift + D

Text Editing Shortcuts (comments, descriptions, replies)

ActionmacOSWindows
Edit your last comment
Toggle Markdown previewCommand + Shift + PControl + Shift + P
BoldCommand + BControl + B
ItalicCommand + IControl + I
StrikethroughCommand + Shift + XControl + Shift + X
Insert linkCommand + KControl + K
Indent textCommand + ]Control + ]
Outdent textCommand + [Control + [
Submit / save changesCommand + EnterControl + Enter

Rich Text Editor — Formatting

ActionmacOSWindows / Linux
BoldCommand + BControl + B
ItalicCommand + IControl + I
StrikethroughCommand + Shift + XControl + Shift + X
Insert a linkCommand + KControl + K
Normal text styleCommand + Option + 0Control + Alt + 0
Heading 1–6Command + Option + 1–6Control + Alt + 1–6
Ordered listCommand + Shift + 7Control + Shift + 7
Unordered listCommand + Shift + 8Control + Shift + 8
Task listCommand + Shift + 9Control + Shift + 9
Code blockCommand + Option + CControl + Alt + C
HighlightCommand + Shift + HControl + Shift + H
SubscriptCommand + ,Control + ,
SuperscriptCommand + .Control + .
Indent listTabTab
Outdent listShift + TabShift + Tab

Rich Text Editor — Editing & Selection

ActionmacOSWindows
CopyCommand + CControl + C
CutCommand + XControl + X
PasteCommand + VControl + V
Paste without formattingCommand + Shift + VControl + Shift + V
UndoCommand + ZControl + Z
Add a line breakShift + EnterShift + Enter
Select allCommand + AControl + A
Extend selection by characterShift + ← / →Shift + ← / →
Extend selection by lineShift + ↑ / ↓Shift + ↑ / ↓
Extend selection to start of documentCommand + Shift + ↑Control + Shift + ↑
Extend selection to end of documentCommand + Shift + ↓Control + Shift + ↓

Project Files Shortcuts (browsing the repository)

ActionShortcut
Move selection up (in Find File)
Move selection down (in Find File)
Open selection (in Find File)Enter
Go back to Find File screenEsc
Go to file permalink (when viewing a file)Y
Open the Web IDE.

Repository Graph Shortcuts

ActionShortcut
Scroll left← or H
Scroll right→ or L
Scroll up↑ or K
Scroll down↓ or J
Scroll to topShift + ↑ or Shift + K
Scroll to bottomShift + ↓ or Shift + J

Epic Shortcuts (Premium/Ultimate, when viewing an epic)

ActionShortcut
Edit descriptionE
Change labelL
Copy epic referenceC then R

Wiki & Incident Shortcuts

ActionShortcut
Edit wiki page (when viewing a wiki page)E
Copy incident reference (when viewing an incident)C then R

GitLab Duo Chat Shortcuts (in supported IDEs)

ActionmacOSWindows
Open/close Chat (or focus it)Option + DAlt + D
Start a new conversation (VS Code)Option + NAlt + N
Refactor code (VS Code)Option + RAlt + R
Write tests (VS Code)Option + TAlt + T

How to Enable or Disable GitLab Shortcuts

Since GitLab 16.4, the enable/disable toggle lives in your user preferences rather than the shortcuts window. To turn shortcuts off:

  1. In the upper-right corner, select your avatar.
  2. Select Preferences.
  3. In the Behavior section, clear the Enable keyboard shortcuts checkbox.
  4. Select Save changes.

To re-enable them, follow the same steps and select the checkbox instead.

One useful exception: the text-field editing shortcuts (bold, italic, link, submit) stay active even when keyboard shortcuts are disabled, so you keep your Markdown formatting keys either way.

Why aren’t my GitLab keyboard shortcuts working?

The most common reasons: shortcuts are disabled in your preferences (see above); you’re not on the right page (project and issue shortcuts only work inside a project or issue, not on the dashboard); or your operating system or browser is intercepting the key combination. GitLab notes that Linux users in particular may find some shortcuts overridden by the OS or browser. Pressing ? shows which shortcuts are active on your current screen.

FAQs

How do I see all keyboard shortcuts in GitLab?

Press ? anywhere in GitLab to open the shortcut reference sheet, or select Help in the lower-left corner and choose Keyboard shortcuts. The sheet shows the shortcuts available on your current screen.

What is the shortcut to open the Web IDE in GitLab?

Press . (the period key) from any project or file view to open the Web IDE.

How do I disable keyboard shortcuts in GitLab?

Select your avatar → Preferences → Behavior, then clear the Enable keyboard shortcuts checkbox and save. This option moved to preferences in GitLab 16.4.

Do GitLab keyboard shortcuts work on Mac?

Yes. Navigation shortcuts are identical on Mac and Windows. For text editing, Mac uses Command where Windows uses Control for example, Command + B versus Control + B for bold.

What’s the difference between Shift shortcuts and g shortcuts?

Shift + a key is a global shortcut that works anywhere (for example, Shift + P for Projects). g then a key is a project shortcut that only works inside a project (for example, g then o for the project overview).

How do I open GitLab Duo Chat with a shortcut?

Press D in GitLab. In a supported IDE, use Option + D (Mac) or Alt + D (Windows) to open or close Duo Chat.

What is the shortcut to start a comment on an issue or merge request?

Press R while viewing the issue or merge request. Any text you’ve selected is quoted in your comment.

Why do some shortcuts need two keys pressed quickly?

Project shortcuts use a sequence like g then o. You must press the two keys in quick succession for GitLab to register them as a shortcut rather than two separate keystrokes.

Master Your GitLab Workflow

Keyboard shortcuts are one of the fastest ways to cut friction out of your day every time your hands stay on the keyboard instead of reaching for the mouse, you save a few seconds, and across a full day of issues, reviews, and commits, that adds up. Start with the ? key to see what’s available on any screen, learn the handful of global shortcuts you’ll use most (Shift + P, Shift + I, Shift + M), then add merge-request review keys as they become second nature. Bookmark this page or grab the PDF, and you’ll have the full reference whenever you need it.

READ NEXT:

Pratik

Pratik is the founder of Tutorial Tactic and a productivity tools specialist with 15 years of hands-on experience in Google Workspace, Microsoft Office, and software automation. He has published over 1,500 guides on keyboard shortcuts, software commands, how-to tutorials and workflow optimization, helping readers across the US and India work faster with the tools they use every day. Tutorial Tactic was founded in 2021 with one goal: cut through the noise and give readers exactly what they need fast, verified, and beginner-friendly.
Back to top button