RStudio keyboard shortcuts
Running code, the console, panes, debugging, and packages in the RStudio IDE.
55 shortcuts Mac and Windows checked September 14, 2026
Print all 55 shortcuts One sheet with every shortcut in this app, ready for the printer or a PDF.
22 actions and 22 key variants match.
- RStudio Documented
| Action | Keys | Row actions |
|---|---|---|
| Move the cursor to the console Anywhere | Mac Ctrl2 | Source |
| Clear the console Console | Mac CtrlL | Source |
| Interrupt the running command Console | Mac Esc | Source |
| Change the working directory Anywhere | Mac CtrlShiftH | Source |
| Move the cursor to the source editor Anywhere | Mac Ctrl1 | Source |
| Run the whole document Source editor | Mac CmdOptionR | Source |
| Run the current chunk Source editor | Mac CmdOptionC | Source |
| Source the current document Source editor | Mac CmdShiftS | Source |
| Delete the line Console or source | Mac CmdD | Source |
| Insert the assignment operator Console or source | Mac Option- | Source |
| Insert the pipe operator Console or source | Mac CmdShiftM | Source |
| Show help for the function at the cursor Console or source | Mac F1 | Source |
| Show the source of the function at the cursor Console or source | Mac F2 | Source |
| Show the keyboard shortcut reference Anywhere | Mac OptionShiftK | Source |
| Build and reload the package Package project | Mac CmdShiftB | Source |
| Check the package Package project | Mac CmdShiftE | Source |
| Document the package Package project | Mac CmdShiftD | Source |
| Continue running Debugging | Mac ShiftF5 | Source |
| Stop debugging Debugging | Mac ShiftF8 | Source |
| Move focus to the terminal Anywhere | Mac ShiftOptionM | Source |
| Undo the last edit Console or source | Mac CmdZ | Source |
| Redo the undone edit Console or source | Mac CmdShiftZ | Source |
About RStudio and its shortcuts
RStudio is organised around the loop of writing code, running it and reading the result, and its shortcuts follow that loop: send a line or a selection to the console, navigate between the four panes, knit a document, and search the help. The pane navigation commands are what make it feel like one program rather than four windows.
RStudio lets you modify its bindings, and some commands depend on the project type or on whether you are editing a notebook, a script or a document. Desktop and server versions can also differ where the browser intervenes.
Where the RStudio keys came from
Read from 1 documentation page published by the makers of RStudio. Report a key that is wrong
To see how one action is done in other apps as well as RStudio, browse the shortcuts by task. Shortcuts by task