RStudio
Insert a code chunk
In RStudio, Ctrl + Alt + I will insert a code chunk. On a Mac, press Cmd + Option + I instead.
Where it works: Source editor
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | CmdOptionI |
| Windows | Desktop app | CtrlAltI |
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.