RStudio Keybindings
Keyboard shortcuts are the most efficient way to accomplish tasks that come up frequently in your coding workflow. As you migrate from RStudio to Positron, maintaining your productivity means working with, not against, your muscle memory.
Many familiar shortcuts will work immediately, because they are built in to Positron and its integrated R support. These are documented with Positron’s keyboard shortcuts. That is also where you can learn how to customize shortcuts.
RStudio keybindings in Positron
A large set of RStudio keybindings can be enabled with the workbench.keybindings.rstudioKeybindings
setting. Restart Positron after changing this setting.
Shortcut | Description |
---|---|
Ctrl-1Ctrl-1 |
Focus Source |
Ctrl-2Ctrl-2 |
Focus Console |
Go to Function/Symbol | |
Comment/Uncomment a line | |
Create a new R file | |
F2F2 |
Go to definition |
Reindent selection | |
Reformat selection | |
Source the current R script | |
Rename symbol | |
Insert code cell (Quarto) | |
Run current statement (Quarto) | |
Run current cell (Quarto) | |
Open version control pane | |
Go to previous tab | |
Go to next tab | |
Delete the current line | |
Set working directory | |
Insert section | |
Open global keybindings list |