Hotkeys and shortcuts for RStudio
(Total 133)
Ctrl + 2 |
ViewsMove focus to Console |
Ctrl + L |
ConsoleClear console |
Home |
ConsoleMove cursor to beginning of line |
End |
ConsoleMove cursor to end of line |
↑ ↓ |
Completions (Console and Source)Navigate candidates |
Ctrl + ↑ |
ConsolePopup command history |
Esc |
Completions (Console and Source)Dismiss completion popup |
Ctrl + ↑ Shift + H |
ConsoleChange working directory |
Ctrl + . |
SourceGoto File/Function |
Ctrl + 1 |
ViewsMove focus to Source Editor |
Ctrl + ↑ Shift + N |
SourceNew document (except on Chrome/Windows) |
Ctrl + Alt + ↑ Shift + N |
SourceNew document (Chrome only) |
Ctrl + O |
SourceOpen document |
Ctrl + S |
SourceSave active document |
Ctrl + W |
SourceClose active document (except on Chrome) |
Ctrl + Alt + W |
SourceClose active document (Chrome only) |
Ctrl + ↑ Shift + W |
SourceClose all open documents |
Ctrl + ↑ Shift + K |
SourceCompile PDF (TeX and Sweave) |
Ctrl + Alt + I |
SourceInsert chunk (Sweave and Knitr) |
Ctrl + ↑ Shift + R |
SourceInsert code section |
Ctrl + ⤶ Enter |
SourceRun current line/selection |
Alt + ⤶ Enter |
SourceRun current line/selection (retain cursor position) |
Ctrl + ↑ Shift + P |
SourceRe-run previous region |
Ctrl + Alt + R |
SourceRun current document |
Ctrl + Alt + B |
SourceRun from document beginning to current line |
Ctrl + Alt + E |
SourceRun from current line to document end |
Ctrl + Alt + F |
SourceRun the current function definition |
Ctrl + Alt + T |
SourceRun the current code section |
Ctrl + Alt + P |
SourceRun previous Sweave/Rmd code |
Ctrl + Alt + C |
SourceRun the current Sweave/Rmd chunk |
Ctrl + Alt + N |
SourceRun the next Sweave/Rmd chunk |
Ctrl + ↑ Shift + O |
SourceSource a file |
Ctrl + ↑ Shift + S |
SourceSource the current document |
Ctrl + ↑ Shift + ⤶ Enter |
SourceSource the current document (with echo) |
Alt + L |
SourceFold Selected |
↑ Shift + Alt + L |
SourceUnfold Selected |
Alt + O |
SourceFold All |
↑ Shift + Alt + O |
SourceUnfold All |
↑ Shift + Alt + G |
SourceGo to line |
↑ Shift + Alt + J |
SourceJump to |
Ctrl + ↑ Shift + . |
SourceSwitch to tab |
Ctrl + F11 |
SourcePrevious tab |
Ctrl + F12 |
SourceNext tab |
Ctrl + ↑ Shift + F11 |
SourceFirst tab |
Ctrl + ↑ Shift + F12 |
SourceLast tab |
Ctrl + F9 |
SourceNavigate back |
Ctrl + F10 |
SourceNavigate forward |
Ctrl + Alt + X |
SourceExtract function from selection |
Ctrl + Alt + V |
SourceExtract variable from selection |
Ctrl + I |
SourceReindent lines |
Ctrl + ↑ Shift + C |
SourceComment/uncomment current line/selection |
Ctrl + ↑ Shift + / |
SourceReflow Comment |
Ctrl + ↑ Shift + A |
SourceReformat Selection |
Ctrl + ↑ Shift + Alt + P |
SourceShow Diagnostics |
Alt + ↑ ↓ |
SourceMove Lines Up/Down |
↑ Shift + Alt + ↑ ↓ |
Editing (Console and Source)Select to Start/End |
Ctrl + P |
SourceJump to Matching Brace/Paren |
Ctrl + ↑ Shift + E |
BuildCheck Package |
Ctrl + ↑ Shift + Alt + E |
SourceSelect to Matching Brace/Paren |
Ctrl + Alt + ↑ |
SourceAdd Cursor Above Current Cursor |
Ctrl + Alt + ↓ |
SourceAdd Cursor Below Current Cursor |
Ctrl + Alt + ↑ Shift + ↑ |
SourceMove Active Cursor Up |
Ctrl + Alt + ↑ Shift + ↓ |
SourceMove Active Cursor Down |
Ctrl + F |
SourceFind and Replace |
F3 |
Source(Windows) Find Next |
Ctrl + G |
Source(Linux) Find Next |
↑ Shift + F3 |
Source(Windows) Find Previous |
Ctrl + ↑ Shift + G |
Source(Linux) Find Previous |
Ctrl + F3 |
SourceUse Selection for Find |
Ctrl + ↑ Shift + J |
SourceReplace and Find |
Ctrl + ↑ Shift + F |
SourceFind in Files |
F7 |
SourceCheck Spelling |
Ctrl + Z |
Editing (Console and Source)Undo |
Ctrl + ↑ Shift + Z |
Editing (Console and Source)Redo |
Ctrl + X |
Editing (Console and Source)Cut |
Ctrl + C |
Editing (Console and Source)Copy |
Ctrl + V |
Editing (Console and Source)Paste |
Ctrl + A |
Editing (Console and Source)Select All |
Ctrl + ← → |
Editing (Console and Source)Jump to Word |
Ctrl + Home |
Editing (Console and Source)Jump to Start/End |
Ctrl + End |
Editing (Console and Source)Jump to Start/End |
Ctrl + ↑ ↓ |
Editing (Console and Source)Jump to Start/End |
Ctrl + D |
Editing (Console and Source)Delete Line |
↑ Shift + ← ↑ → ↓ |
Editing (Console and Source)Select |
Ctrl + ↑ Shift + ← → |
Editing (Console and Source)Select Word |
Alt + ↑ Shift + ← |
Editing (Console and Source)Select to Line Start |
Alt + ↑ Shift + → |
Editing (Console and Source)Select to Line End |
Shift + Page Up / Down |
Editing (Console and Source)Select Page Up/Down |
Ctrl + ↑ Shift + Home |
Editing (Console and Source)Select to Start/End |
Ctrl + ↑ Shift + End |
Editing (Console and Source)Select to Start/End |
Ctrl + ⬅ Backspace |
Editing (Console and Source)Delete Word Left |
⭾ Tab |
Completions (Console and Source)Accept selected candidate |
↑ Shift + ⭾ Tab |
Editing (Console and Source)Outdent |
Ctrl + U |
Editing (Console and Source)Yank line up to cursor |
Ctrl + K |
Editing (Console and Source)Yank line after cursor |
Ctrl + Y |
Editing (Console and Source)Insert currently yanked text |
Alt + - |
Editing (Console and Source)Insert assignment operator |
Ctrl + ↑ Shift + M |
Editing (Console and Source)Insert pipe operator |
F1 |
Editing (Console and Source)Show help for function at cursor |
F2 |
Editing (Console and Source)Show source code for function at cursor |
Ctrl + Alt + U |
Editing (Console and Source)Find usages for symbol at cursor (C++) |
Ctrl + Space |
Completions (Console and Source)Attempt completion |
⤶ Enter |
Git / SVNStage/Unstage and move to next (Git) |
→ |
Completions (Console and Source)Accept selected candidate |
Ctrl + 3 |
ViewsMove focus to Help |
Ctrl + 4 |
ViewsShow History |
Ctrl + 5 |
ViewsShow Files |
Ctrl + 6 |
ViewsShow Plots |
Ctrl + 7 |
ViewsShow Packages |
Ctrl + 8 |
ViewsShow Environment |
Ctrl + 9 |
ViewsShow Git/SVN |
Ctrl + 0 |
ViewsShow Build |
Ctrl + F8 |
ViewsSync Editor & PDF Preview |
Alt + ↑ Shift + K |
ViewsShow Keyboard Shortcut Reference |
Ctrl + ↑ Shift + B |
BuildBuild and Reload |
Ctrl + ↑ Shift + L |
BuildLoad All (devtools) |
Ctrl + ↑ Shift + T |
BuildTest Package (Desktop) |
Ctrl + Alt + F7 |
BuildTest Package (Web) |
Ctrl + ↑ Shift + D |
BuildDocument Package |
↑ Shift + F9 |
DebugToggle Breakpoint |
F10 |
DebugExecute Next Line |
↑ Shift + F4 |
DebugStep Into Function |
↑ Shift + F6 |
DebugFinish Function/Loop |
↑ Shift + F5 |
DebugContinue |
↑ Shift + F8 |
DebugStop Debugging |
Ctrl + Alt + F11 |
PlotsPrevious plot |
Ctrl + Alt + F12 |
PlotsNext plot |
Ctrl + Alt + D |
Git / SVNDiff active source document |
Ctrl + Alt + M |
Git / SVNCommit changes |
Ctrl + ↑/↓ |
Git / SVNScroll diff view |
Space |
Git / SVNStage/Unstage (Git) |
Ctrl + Q |
SessionQuit Session (desktop only) |
Ctrl + ↑ Shift + F10 |
SessionRestart R Session |