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