Skip to the main content

RStudio

Insert a code section

CmdShiftR

Mac Desktop app RStudio IDE

Practice this

Press Ctrl + Shift + R to insert a code section in RStudio. On a Mac, press Cmd + Shift + R instead.

Where it works: Source editor

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Desktop app CmdShiftR
Windows Desktop app CtrlShiftR

Where this comes from

Keyboard Shortcuts in the RStudio IDE - Posit Support

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

Report a correction