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.
- RStudio Documented
| Action | Keys | Row actions |
|---|---|---|
| Reformat the selection Source editor | Mac CmdShiftA 1 more variant | Source |
| Find and replace Source editor | Mac CmdF 1 more variant | Source |
| Find in files Anywhere | Mac CmdShiftF 1 more variant | Source |
| Rename a symbol in scope Source editor | Mac CmdOptionShiftM 1 more variant | Source |
| Delete the line Console or source | Mac CmdD 1 more variant | Source |
| Insert the assignment operator Console or source | Mac Option- 1 more variant | Source |
| Insert the pipe operator Console or source | Mac CmdShiftM 1 more variant | Source |
| Show help for the function at the cursor Console or source | Mac F1 1 more variant | Source |
| Show the source of the function at the cursor Console or source | Mac F2 1 more variant | Source |
| Show the command palette Anywhere | Mac CmdShiftP 1 more variant | Source |
| Show the keyboard shortcut reference Anywhere | Mac OptionShiftK 1 more variant | Source |
| Build and reload the package Package project | Mac CmdShiftB 1 more variant | Source |
| Check the package Package project | Mac CmdShiftE 1 more variant | Source |
| Document the package Package project | Mac CmdShiftD 1 more variant | Source |
| Toggle a breakpoint Debugging | Mac ShiftF9 1 more variant | Source |
| Run the next line Debugging | Mac F10 1 more variant | Source |
| Continue running Debugging | Mac ShiftF5 1 more variant | Source |
| Stop debugging Debugging | Mac ShiftF8 1 more variant | Source |
| Restart the R session Anywhere | Mac CmdShiftF10 1 more variant | Source |
| Open a new terminal Anywhere | Mac ShiftOptionR 1 more variant | Source |
| Move focus to the terminal Anywhere | Mac ShiftOptionM 1 more variant | Source |
| Undo the last edit Console or source | Mac CmdZ 1 more variant | Source |
| Redo the undone edit Console or source | Mac CmdShiftZ 1 more variant | Source |
| Show the plots pane Anywhere | Mac Ctrl6 1 more variant | Source |
| Show the environment pane Anywhere | Mac Ctrl8 1 more variant | 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