RStudio Keybindings

RStudio keybindings in Positron

If you’d prefer to use RStudio keybindings in Positron, do the following:

  • Open Positron’s settings via Cmd/Ctrl+,
  • Search for “RStudio”, or navigate to Workbench > Keybindings > RStudio Keybindings
  • Check the “Enable RStudio keybindings” checkbox
  • Restart Positron

The following RStudio keybindings will then be enabled:

Shortcut Description
Ctrl+1 Focus Source
Ctrl+2 Focus Console
Cmd/Ctrl+. Go to Symbol
Cmd/Ctrl+Shift+C Comment/Uncomment a line
Cmd/Ctrl+Shift+N Create a new R file
F2 Go to definition
Cmd/Ctrl+I Reindent selection
Cmd/Ctrl+Shift+A Reformat selection
Cmd/Ctrl+Shift+S Source the current R script
Cmd/Ctrl+Alt+Shift+M Rename
Cmd/Ctrl+Alt+I Insert a new Quarto/R Markdown cell
Cmd/Ctrl+Alt+M Open version control pane
Cmd/Ctrl+Alt+Left Go to previous tab
Cmd/Ctrl+Alt+Right Go to next tab
Cmd/Ctrl+D Delete the current line
Cmd/Ctrl+Shift+M Insert pipe operator
Cmd/Ctrl+Shift+R Insert section
Alt+Shift+K Open global keybindings list
Alt+- Insert left assignment operator <-