Skip to the main content

GitLab

Insert a code block

CmdOptionC

Mac Web app GitLab web interface

Practice this

To insert a code block in GitLab, press Ctrl + Alt + C. On a Mac, press Cmd + Option + C instead. It works in the browser version.

Where it works: Rich text editor

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Web app CmdOptionC
Windows Web app CtrlAltC

Where this comes from

Keyboard shortcuts - GitLab Docs

Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.

Report a correction