RStudio IDE keyboard shortcuts
In RStudio the keys that matter most send code to R: a line, a chunk, a section or the whole file, each with its own shortcut. Posit gives one set for Windows and Linux and another for the Mac, and a few change when RStudio runs in a browser, which the notes point out. These are the default bindings; Tools > Modify Keyboard Shortcuts changes any of them, and the Emacs, Vim and Sublime Text keymaps change some.
Checked against Posit — RStudio User Guide: Keyboard Shortcuts, Posit — RStudio User Guide: Text Editor, Posit — RStudio User Guide: Custom Shortcuts and Posit — RStudio and Posit Workbench release notes. Version: RStudio 2026.09.0, Desktop and Server, default keybindings.
Showing the Windows keyboard. Showing the Mac keyboard.
The top 20 are the RStudio shortcuts this page marks as the ones to learn first, in the order they appear here. The drill asks the marked ones first too, shuffled. Or tick your own and print those.
The 20 to learn first: the shortcuts the RStudio page marks as the ones to learn first, in the order they appear on it.
Your own sheet: the RStudio shortcuts you ticked.
Start here
The palette finds any command by name and shows its key beside it, so it is the one shortcut that teaches the rest.
Practise theseRunning code and knitting
Send a line, a section, a chunk or the whole file to R without leaving the editor.
Practise theseEditing
Practise theseSelecting and multiple cursors
Practise theseFinding and replacing
Practise theseFiles and tabs
Practise thesePanes and focus
Ctrl and a number, Ctrl on a Mac too, jumps to a pane. Add Shift to zoom that pane.
Practise theseConsole, completion and terminal
Practise theseDebugging, packages, Git and plots
Practise theseNext
Jupyter
A Jupyter notebook has two modes: in edit mode your keys type into a cell, and in command mode single letters such as A, B and D then D act on whole cells.
VS Code
VS Code has more shortcuts than anyone can hold in their head, so this page is ordered by how often you would actually reach for one.
Excel
Excel rewards the keyboard more than any other program on this site: the difference between a competent user and a fast one is almost entirely in this list.
Terminal
Almost everything here comes from readline, the line editor that bash and zsh both use.
RStudio IDE keyboard shortcuts — comboshelf.com. Checked 27 September 2026 against Posit — RStudio User Guide: Keyboard Shortcuts.