RStudio R IDE shortcuts
Light · Postcard
102 × 152 mm · PDF
Dark · Postcard
102 × 152 mm · PDF
Ink saver · Postcard
102 × 152 mm · PDF
Light · A4 landscape
297 × 210 mm · PDF
Dark · A4 landscape
297 × 210 mm · PDF
Ink saver · A4 landscape
297 × 210 mm · PDF
Light · A3 landscape
420 × 297 mm · PDF
Dark · A3 landscape
420 × 297 mm · PDF
Ink saver · A3 landscape
420 × 297 mm · PDF
Start here
Concepts
| Windows / Linux | macOS |
|---|---|
Ctrl+Enter |
⌘↩ |
Alt+- |
⌥- |
Ctrl+Shift+M |
⇧⌘M |
Ctrl+Shift+F10 |
⇧⌘0 |
Ctrl+. |
Ctrl+. |
Run Code
R Markdown & Quarto
Console & Session
Editing
Find & Navigate
Files & Tabs
Panes
| Pane | Show | Zoom |
|---|---|---|
| Help | Ctrl+3 |
Ctrl+Shift+3 |
| History | Ctrl+4 |
Ctrl+Shift+4 |
| Files | Ctrl+5 |
Ctrl+Shift+5 |
| Plots | Ctrl+6 |
Ctrl+Shift+6 |
| Packages | Ctrl+7 |
Ctrl+Shift+7 |
| Environment | Ctrl+8 |
Ctrl+Shift+8 |
| Viewer | Ctrl+9 |
Ctrl+Shift+9 |
| Git | Ctrl+F1 |
Ctrl+Shift+F1 |
| Build | Ctrl+F2 |
Ctrl+Shift+F2 |
Debug
Packages & Git
Recipes
# Ctrl+Alt+I insert a chunk```{r}#| label: fitfit <- lm(mpg ~ wt, data = mtcars)```# Ctrl+Shift+Enter run it# Ctrl+Shift+K render the file
# Ctrl+Shift+L devtools::load_all()# Ctrl+Shift+D devtools::document()# Ctrl+Shift+T devtools::test()# Ctrl+Shift+E devtools::check()
debugonce(my_fun) # pause on next callmy_fun(x)# F10 next line, Shift+F4 step in# Shift+F7 finish, Shift+F8 stop
# Tools > Modify Keyboard Shortcuts saves to:~/.config/rstudio/keybindings/rstudio_bindings.json~/.config/rstudio/keybindings/editor_bindings.json# Windows: ~/AppData/Roaming/RStudio/keybindings/



