RStudio
Knit, preview or compile the document
For knit, preview or compile the document in RStudio, press Ctrl + Shift + K. On a Mac, press Cmd + Shift + K instead.
Where it works: Source editor
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | CmdShiftK |
| Windows | Desktop app | CtrlShiftK |
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.