RStudio (MacOS)
Editing (Console and Source)
Jump to start/end
Command + Home/End / Command + Up/Down
All hotkeys for RStudio (MacOS)
ConsoleMove cursor to console |
Ctrl + 2 |
ConsoleClean console |
Ctrl + L |
ConsoleMove cursor to beginning of line |
Command + Left |
ConsoleMove cursor to end of line |
Command + Right |
ConsoleNavigate command history |
Up / Down |
ConsolePopup command history |
Command + Up |
ConsoleInterrupt currently executing command |
Esc |
ConsoleChange working directory |
Ctrl + Shift + H |
SourceGoto file/function |
Ctrl + . |
SourceMove cursor to source editor |
Ctrl + 1 |
SourceNew document (except on chrome/windows) |
Command + Shift + N |
SourceNew document (Chrome only) |
Command + Option + Shift + N |
SourceOpen document |
Command + O |
SourceSave active document |
Command + S |
SourceClose active document (except on Chrome) |
Command + W |
SourceClose active document (Chrome only) |
Command + Option + W |
SourceClose all open documents |
Command + Shift + W |
SourcePreview HTML (markdown and HTML) |
Command + Shift + K |
SourceCompile notebook/compile PDF (TeX and Sweave) |
Command + Shift + K |
SourceInsert chunk (Sweave and Knitr) |
Command + Option + I |
SourceInsert code section |
Command + Shift + R |
SourceRun current line/selection |
Command + Enter |
SourceRun current line/selection (retain cursor position) |
Option + Enter |
SourceRe-run previous region |
Command + Shift + P |
SourceRun current document |
Command + Option + R |
SourceRun from document beginning to current line |
Command + Option + B |
SourceRun from current line to document end |
Command + Option + E |
SourceRun from current line to document end |
Command + Option + F |
SourceRun the current code section |
Command + Option + T |
SourceRun previous sweave/Rmd code |
Command + Option + P |
SourceRun the current Sweave/Rmd chunk |
Command + Option + C |
SourceRun the next Sweave/Rmd chunk |
Command + Option + N |
SourceSource a file |
Command + Shift + O |
SourceSource the current document |
Command + Shift + S |
SourceSource the current document (with echo) |
Command + Shift + Enter |
SourceFold selected |
Command + Option + L |
SourceUnfold selected |
Command + Shift + Option + L |
SourceFold all |
Commad + Option + O |
SourceUnfold all |
Commad + Shift + Option + O |
SourceGo to line |
Commad + Shift + Option + G |
SourceJump to |
Commad + Shift + Option + 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 |
Command + F9 |
SourceNavigate forward |
Command + F10 |
SourceExtract function from selection |
Command + Option + X |
SourceExtract variable from selection |
Command + Option + V |
SourceReindent lines |
Command + I |
SourceComment/uncomment current line/selection |
Command + Shift + C |
SourceReflow comment |
Command + Shift + / |
SourceReformat selection |
Command + Shift + A |
SourceShow diagnostics |
Command + Shift + Shift + P |
SourceMove lines Up/Down |
Option + Up/Down |
SourceCopy lines Up/Down |
Command + Option + Up/Down |
SourceJump to matching Brace/Paren |
Ctrl + P |
SourceExpand to matching Brace/Paren |
Ctrl + Shift + E |
SourceSelect to matching Brace/Paren |
Command + Shift + Option + E |
SourceAdd cursor above current cursor |
Ctrl + Option + Up |
SourceAdd cursor beow current cursor |
Command + Option + Down |
SourceMove active cursor up |
Ctrl + Option + Shift + Up |
SourceMove Active Cursor Down |
Ctrl + Option + Shift + Down |
SourceFind and replace |
Command + F |
SourceFind next |
Commad + G |
SourceFind previous |
Commad + Shift + F3 |
SourceUse selection for find |
Command + E |
SourceReplace and find |
Command + Shift + J |
SourceFind in files |
Command + Shift + F |
SourceCheck spelling |
F7 |
Completions (Console and Source)Attempt completion |
Tab / Command + Space |
Completions (Console and Source)Navigate candidates |
Up / Down |
Completions (Console and Source)Accept selected candidate |
Enter / Tab / Right |
Completions (Console and Source)Dismiss completion popup |
Esc |
ViewsMove focus to Source Editor |
Command + 1 |
ViewsMove focus to Console |
Command + 2 |
ViewsMove focus to Help |
Command + 3 |
ViewsShow History |
Command + 4 |
ViewsShow files |
Command + 5 |
ViewsShow plots |
Command + 6 |
ViewsShow packages |
Command + 7 |
ViewsShow environment |
Command + 8 |
ViewsShow git/svn |
Command + 9 |
ViewsShow build |
Command + 0 |
ViewsSync editor & pdf preview |
Command + F8 |
ViewsReference |
Option + Shift + K |
BuildBuild and reload |
Command + Shift + B |
BuildLoad all (devtools) |
Command + Shift + L |
BuildTest package (desktop) |
Command + Shift + T |
BuildTest package (web) |
Command + Option + F7 |
BuildCheck package |
Command + Shift + E |
BuildDocument package |
Command + 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 |
Command + Option + F11 |
PlotsNext plot |
Command + Option + F12 |
Git / SVNDiff active source document |
Ctrl + Option + D |
Git / SVNCommit changes |
Ctrl + Option + M |
Git / SVNScroll diff view |
Ctrl + Up/Down |
Git / SVNStage/unstage(Git) |
Spacebar |
Git / SVNStage/unstage and move to next (Git) |
Enter |
SessionQuit Session (desktop only) |
Command + Q |
SessionRestart R Session |
Command + Shift + F10 |
Editing (Console and Source)Undo |
Command + Z |
Editing (Console and Source)Redo |
Command + Shift + Z |
Editing (Console and Source)Cut |
Command + X |
Editing (Console and Source)Copy |
Command + C |
Editing (Console and Source)Paste |
Command + V |
Editing (Console and Source)Select all |
Command + A |
Editing (Console and Source)Jump to word |
Command + Left/Right |
Editing (Console and Source)Jump to start/end |
Command + Home/End / Command + Up/Down |
Editing (Console and Source)Delete line |
Command + D |
Editing (Console and Source)Select |
Shift + Arrow |
Editing (Console and Source)Select word |
Option + Shift + Left/Right |
Editing (Console and Source)Select to line start |
Command + Shift + Left |
Editing (Console and Source)Select to line end |
Command + Shift + RIght |
Editing (Console and Source)Select page up/down |
Shift + Page Up / Shift + Page down |
Editing (Console and Source)Select page start/end |
Command + Shift + Home/End |
Editing (Console and Source)Delete word left |
Option + Backspace |
Editing (Console and Source)Indent |
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 |
Option + - |
Editing (Console and Source)Insert pipe operator |
Command + 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++) |
Command + Option + U |