RStudio
Source the current document
To source the current document in RStudio, press Ctrl + Shift + S. On a Mac, press Cmd + Shift + S instead.
Where it works: Source editor
Every documented variant
| System | Environment | Keys |
|---|---|---|
| Mac | Desktop app | CmdShiftS |
| Windows | Desktop app | CtrlShiftS |
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.