0% found this document useful (0 votes)
10 views1 page

RStudio Keyboard Shortcuts Guide

This document provides a summary of keyboard shortcuts in RStudio. It lists shortcuts for navigating between the console, source editor, plots, packages, and other views. It also includes shortcuts for common editing tasks like undo/redo, cutting/copying/pasting, commenting code, and debugging code using breakpoints or stepping through functions. The shortcuts are organized into categories like Console, Editing, Views, Debugging, and more for easy reference.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

RStudio Keyboard Shortcuts Guide

This document provides a summary of keyboard shortcuts in RStudio. It lists shortcuts for navigating between the console, source editor, plots, packages, and other views. It also includes shortcuts for common editing tasks like undo/redo, cutting/copying/pasting, commenting code, and debugging code using breakpoints or stepping through functions. The shortcuts are organized into categories like Console, Editing, Views, Debugging, and more for easy reference.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

[R] Keyboard Shortcuts

based on RStudio/www/docs/[Link]

Console Completions (Console and Source) Terminal Source (cont)


Description Windows & Linux Description Windows & Linux Description Windows & Linux Description Windows & Linux
Move cursor to Console Ctrl+2 Attempt completion Tab or Ctrl+Space New Terminal Shift+Alt+T Run the current code section Ctrl+Alt+T
Clear console Ctrl+L Navigate candidates Up/Down Rename Current Terminal Shift+Alt+R Run previous Sweave/Rmd code Ctrl+Alt+P
Move cursor to beginning of line Home Accept selected candidate Enter, Tab, or Right Clear Current Terminal Ctrl+Shift+L Run the current Sweave/Rmd chunk Ctrl+Alt+C
Move cursor to end of line End Dismiss completion popup Esc Move Focus to Terminal Ctrl+Shift+T Run the next Sweave/Rmd chunk Ctrl+Alt+N
Navigate command history Up/Down Previous Terminal Ctrl+Alt+F11 Source a file Ctrl+Shift+O
Popup command history Ctrl+Up Views Next Terminal Ctrl+Alt+F12 Source the current document Ctrl+Shift+S
Interrupt currently executing command Esc Description Windows & Linux Source the current document (with echo) Ctrl+Shift+Enter
Change working directory Ctrl+Shift+H Move focus to Source Editor Ctrl+1 Plots Fold Selected Alt+L
Move focus to Console Ctrl+2 Description Windows & Linux Unfold Selected Shift+Alt+L
Move focus to Help Ctrl+3 Previous plot Ctrl+Alt+F11 Fold All Alt+O
Show History Ctrl+4 Next plot Ctrl+Alt+F12 Unfold All Shift+Alt+O
Show Files Ctrl+5 Go to line Shift+Alt+G
Editing (Console and Source) Show Plots Ctrl+6 Git/SVN Jump to Shift+Alt+J
Description Windows & Linux Show Packages Ctrl+7 Description Windows & Linux Switch to tab Ctrl+Shift+.
Undo Ctrl+Z Show Environment Ctrl+8 Diff active source document Ctrl+Alt+D Previous tab Ctrl+F11
Redo Ctrl+Shift+Z Show Git/SVN Ctrl+9 Commit changes Ctrl+Alt+M Next tab Ctrl+F12
Cut Ctrl+X Show Build Ctrl+0 Scroll diff view Ctrl+Up/Down First tab Ctrl+Shift+F11
Copy Ctrl+C Sync Editor & PDF Preview Ctrl+F8 Stage/Unstage (Git) Spacebar Last tab Ctrl+Shift+F12
Paste Ctrl+V Show Keyboard Shortcut Reference Alt+Shift+K Stage/Unstage and move to next (Git) Enter Navigate back Ctrl+F9
Select All Ctrl+A Navigate forward Ctrl+F10
Jump to Word Ctrl+Left/Right Session Source Extract function from selection Ctrl+Alt+X
Jump to Start/End Ctrl+Home/End or Ctrl+Up/Down Description Windows & Linux Description Windows & Linux Extract variable from selection Ctrl+Alt+V
Delete Line Ctrl+D Quit Session (desktop only) Ctrl+Q Goto File/Function Ctrl+. Reindent lines Ctrl+I
Select Shift+[Arrow] Restart R Session Ctrl+Shift+F10 Move cursor to Source Editor Ctrl+1 Comment/uncomment current line/selection Ctrl+Shift+C
New document (except on
Select Word Ctrl+Shift+Left/Right Ctrl+Shift+N Reflow Comment Ctrl+Shift+/
Chrome/Windows)
Select to Line Start Alt+Shift+Left New document (Chrome only) Ctrl+Alt+Shift+N Reformat Selection Ctrl+Shift+A
Select to Line End Alt+Shift+Right Debug Open document Ctrl+O Show Diagnostics Ctrl+Shift+Alt+P
Select Page Up/Down Shift+PageUp/PageDown Description Windows & Linux Save active document Ctrl+S Transpose Letters {Mac only}
Select to Start/End (1) Ctrl+Shift+Home/End Toggle Breakpoint Shift+F9 Close active document (except on Chrome) Ctrl+W Move Lines Up/Down Alt+Up/Down
Select to Start/End (2) Shift+Alt+Up/Down Execute Next Line F10 Close active document (Chrome only) Ctrl+Alt+W Copy Lines Up/Down Shift+Alt+Up/Down
Delete Word Left Ctrl+Backspace Step Into Function Shift+F4 Close all open documents Ctrl+Shift+W Jump to Matching Brace/Paren Ctrl+P
Delete Word Right {Mac only} Finish Function/Loop Shift+F6 Preview HTML (Markdown and HTML) Ctrl+Shift+K Expand to Matching Brace/Paren Ctrl+Shift+E
Delete to Line End {Mac only} Continue Shift+F5 Knit Document (knitr) Ctrl+Shift+K Select to Matching Brace/Paren Ctrl+Shift+Alt+E
Delete to Line Start {Mac only} Stop Debugging Shift+F8 Compile Notebook Ctrl+Shift+K Add Cursor Above Current Cursor Ctrl+Alt+Up
Indent Tab (at beginning of line) Compile PDF (TeX and Sweave) Ctrl+Shift+K Add Cursor Below Current Cursor Ctrl+Alt+Down
Outdent Shift+Tab Build Insert chunk (Sweave and Knitr) Ctrl+Alt+I Move Active Cursor Up Ctrl+Alt+Shift+Up
Yank line up to cursor Ctrl+U Description Windows & Linux Insert code section Ctrl+Shift+R Move Active Cursor Down Ctrl+Alt+Shift+Down
Yank line after cursor Ctrl+K Install and Restart Ctrl+Shift+B Run current line/selection Ctrl+Enter Find and Replace Ctrl+F
Insert currently yanked text Ctrl+Y Load All (devtools) Ctrl+Shift+L Run current line/selection (retain position) Alt+Enter Find Next Win: F3, Linux: Ctrl+G
Insert assignment operator Alt+- Test Package (Desktop) Ctrl+Shift+T Re-run previous region Ctrl+Shift+P Find Previous Win: Shift+F3, Linux: Ctrl+Shift+G
Insert pipe operator Ctrl+Shift+M Test Package (Web) Ctrl+Alt+F7 Run current document Ctrl+Alt+R Use Selection for Find Ctrl+F3
Show help for function at cursor F1 Check Package Ctrl+Shift+E Run from document beginning to current line Ctrl+Alt+B Replace and Find Ctrl+Shift+J
Show source code for function at cursor F2 Document Package Ctrl+Shift+D Run from current line to document end Ctrl+Alt+E Find in Files Ctrl+Shift+F
Find usages for symbol at cursor (C++) Ctrl+Alt+U Run the current function definition Ctrl+Alt+F Check Spelling F7

You might also like