GitLab
Insert a code block
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
| 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.