Hotkeys and shortcuts for RStudio (Windows)
(Total 134)
Ctrl + 2 |
ConsoleMove cursor to console |
Ctrl + L |
ConsoleClean console |
Home |
ConsoleMove cursor to beginning of line |
End |
ConsoleMove cursor to end of line |
Up / Down |
ConsoleNavigate command history |
Ctrl + Up |
ConsolePopup command history |
Esc |
ConsoleInterrupt currently executing command |
Ctrl + Shift + H |
ConsoleChange working directory |
Ctrl + . |
SourceGoto file/function |
Ctrl + 1 |
SourceMove cursor 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 |
SourcePreview HTML (markdown and HTML) |
Ctrl + Shift + K |
SourceCompile notebook/compile 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 from current line to document end |
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 + Shift + P |
SourceShow diagnostics |
Alt + Up/Down |
SourceMove lines Up/Down |
Shift + Alt + Up/Down |
SourceCopy lines Up/Down |
Ctrl + P |
SourceJump to matching Brace/Paren |
Ctrl + Shift + E |
SourceExpand to matching Brace/Paren |
Ctrl + Shift + Alt + E |
SourceSelect to matching Brace/Paren |
Ctrl + Alt + Up |
SourceAdd cursor above current cursor |
Ctrl + Alt + Down |
SourceAdd cursor beow current cursor |
Ctrl + Alt + Shift + Up |
SourceMove active cursor up |
Ctrl + Alt + Shift + Down |
SourceMove Active Cursor Down |
Ctrl + F |
SourceFind and replace |
F3 |
SourceFind next |
Shift + F3 |
SourceFind previous |
Ctrl + F3 |
SourceUse selection for find |
Ctrl + Shift + J |
SourceReplace and find |
Ctrl + Shift + F |
SourceFind in files |
F7 |
SourceCheck spelling |
Tab / Ctrl + Space |
Completions (Console and Source)Attempt completion |
Up / Down |
Completions (Console and Source)Navigate candidates |
Enter / Tab / Right |
Completions (Console and Source)Accept selected candidate |
Esc |
Completions (Console and Source)Dismiss completion popup |
Ctrl + 1 |
ViewsMove focus to Source Editor |
Ctrl + 2 |
ViewsMove focus to Console |
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 |
ViewsReference |
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 + E |
BuildCheck package |
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 + Up/Down |
Git / SVNScroll diff view |
Spacebar |
Git / SVNStage/unstage(Git) |
ENter |
Git / SVNStage/unstage and move to next (Git) |
Ctrl + Q |
SessionQuit Session (desktop only) |
Ctrl + Shift + F10 |
SessionRestart R Session |
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 + Left/Right |
Editing (Console and Source)Jump to word |
Ctrl + Home/End / Ctrl + Up/Down |
Editing (Console and Source)Jump to start/end |
Ctrl + D |
Editing (Console and Source)Delete line |
Shift + Arrow |
Editing (Console and Source)Select |
Ctrl + Shift + Left/Right |
Editing (Console and Source)Select word |
Alt + Shift + Left |
Editing (Console and Source)Select to line start |
Alt + Shift + RIght |
Editing (Console and Source)Select to line end |
Shift + Page Up / Shift + Page down |
Editing (Console and Source)Select page up/down |
Ctrl + Shift + Home/End |
Editing (Console and Source)Select page start/end |
Ctrl + Backspace |
Editing (Console and Source)Delete word left |
Tab |
Editing (Console and Source)Indent |
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++) |