All hotkeys for RStudio (Mac)
ViewsMove focus to Console |
Ctrl + 2 |
ConsoleClear console |
Ctrl + L |
ConsoleMove cursor to beginning of line |
⌘ Cmd + ← |
ConsoleMove cursor to end of line |
⌘ Cmd + → |
Completions (Console and Source)Navigate candidates |
↑ ↓ |
ConsolePopup command history |
⌘ Cmd + ↑ |
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) |
⌘ Cmd + ↑ Shift + N |
SourceNew document (Chrome only) |
⌘ Cmd + ↑ Shift + Alt + N |
SourceOpen document |
⌘ Cmd + O |
SourceSave active document |
⌘ Cmd + S |
SourceClose active document (except on Chrome) |
⌘ Cmd + W |
SourceClose active document (Chrome only) |
⌘ Cmd + ⌥ Option + W |
SourceClose all open documents |
⌘ Cmd + ↑ Shift + W |
SourceCompile PDF (TeX and Sweave) |
⌘ Cmd + ↑ Shift + K |
SourceInsert chunk (Sweave and Knitr) |
⌘ Cmd + ⌥ Option + I |
SourceInsert code section |
⌘ Cmd + ↑ Shift + R |
SourceRun current line/selection |
⌘ Cmd + ⤶ Enter |
SourceRun current line/selection (retain cursor position) |
⌥ Option + ⤶ Enter |
SourceRe-run previous region |
⌘ Cmd + ↑ Shift + P |
SourceRun current document |
⌘ Cmd + ⌥ Option + R |
SourceRun from document beginning to current line |
⌘ Cmd + ⌥ Option + B |
SourceRun from current line to document end |
⌘ Cmd + ⌥ Option + E |
SourceRun the current function definition |
⌘ Cmd + ⌥ Option + F |
SourceRun the current code section |
⌘ Cmd + ⌥ Option + T |
SourceRun previous Sweave/Rmd code |
⌘ Cmd + ⌥ Option + P |
SourceRun the current Sweave/Rmd chunk |
⌘ Cmd + ⌥ Option + C |
SourceRun the next Sweave/Rmd chunk |
⌘ Cmd + ⌥ Option + N |
SourceSource a file |
⌘ Cmd + ↑ Shift + O |
SourceSource the current document |
⌘ Cmd + ↑ Shift + S |
SourceSource the current document (with echo) |
⌘ Cmd + ↑ Shift + ⤶ Enter |
SourceFold Selected |
⌘ Cmd + ⌥ Option + L |
SourceUnfold Selected |
⌘ Cmd + ↑ Shift + ⌥ Option + L |
SourceFold All |
⌘ Cmd + ⌥ Option + O |
SourceUnfold All |
⌘ Cmd + ↑ Shift + ⌥ Option + O |
SourceGo to line |
⌘ Cmd + ↑ Shift + ⌥ Option + G |
SourceJump to |
⌘ Cmd + ↑ 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 |
⌘ Cmd + F9 |
SourceNavigate forward |
⌘ Cmd + F10 |
SourceExtract function from selection |
⌘ Cmd + ⌥ Option + X |
SourceExtract variable from selection |
⌘ Cmd + ⌥ Option + V |
SourceReindent lines |
⌘ Cmd + I |
SourceComment/uncomment current line/selection |
⌘ Cmd + ↑ Shift + C |
SourceReflow Comment |
⌘ Cmd + ↑ Shift + / |
SourceReformat Selection |
⌘ Cmd + ↑ Shift + A |
SourceShow Diagnostics |
⌘ Cmd + ↑ Shift + Alt + P |
SourceTranspose Letters |
Ctrl + T |
SourceMove Lines Up/Down |
⌥ Option + ↑ ↓ |
SourceCopy Lines Up/Down |
⌘ Cmd + ⌥ Option + ↑ ↓ |
SourceJump to Matching Brace/Paren |
Ctrl + P |
SourceExpand to Matching Brace/Paren |
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 |
⌘ Cmd + F |
SourceFind Next |
⌘ Cmd + G |
SourceFind Previous |
⌘ Cmd + ↑ Shift + G |
SourceUse Selection for Find |
⌘ Cmd + E |
SourceReplace and Find |
⌘ Cmd + ↑ Shift + J |
SourceFind in Files |
⌘ Cmd + ↑ Shift + F |
SourceCheck Spelling |
F7 |
Editing (Console and Source)Undo |
⌘ Cmd + Z |
Editing (Console and Source)Redo |
⌘ Cmd + ↑ Shift + Z |
Editing (Console and Source)Cut |
⌘ Cmd + X |
Editing (Console and Source)Copy |
⌘ Cmd + C |
Editing (Console and Source)Paste |
⌘ Cmd + V |
Editing (Console and Source)Select All |
⌘ Cmd + A |
Editing (Console and Source)Jump to Word |
⌥ Option + ← → |
Editing (Console and Source)Jump to Start/End |
⌘ Cmd + Home |
Editing (Console and Source)Jump to Start/End |
⌘ Cmd + End |
Editing (Console and Source)Jump to Start/End |
⌘ Cmd + ↑ ↓ |
Editing (Console and Source)Delete Line |
⌘ Cmd + D |
Editing (Console and Source)Select |
↑ Shift + ← ↑ → ↓ |
Editing (Console and Source)Select Word |
⌥ Option + ↑ Shift + ← → |
Editing (Console and Source)Select to Line Start |
⌘ Cmd + ↑ Shift + ← |
Editing (Console and Source)Select to Line End |
⌘ Cmd + ↑ Shift + → |
Editing (Console and Source)Select Page Up/Down |
Shift + Page Up / Down |
Editing (Console and Source)Select to Start/End |
⌘ Cmd + ↑ Shift + ↑ ↓ |
Editing (Console and Source)Delete to Line Start |
⌥ Option + ⬅ Backspace |
Editing (Console and Source)Delete Word Left |
Ctrl + ⌥ Option + ⬅ Backspace |
Editing (Console and Source)Delete Word Right |
⌥ Option + Del |
Editing (Console and Source)Yank line after cursor |
Ctrl + K |
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)Insert currently yanked text |
Ctrl + Y |
Editing (Console and Source)Insert assignment operator |
⌥ Option + - |
Editing (Console and Source)Insert pipe operator |
⌘ Cmd + ↑ 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++) |
⌘ Cmd + ⌥ Option + U |
Completions (Console and Source)Attempt completion |
⌘ Cmd + 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 |
⌘ Cmd + F8 |
ViewsShow Keyboard Shortcut Reference |
⌥ Option + ↑ Shift + K |
BuildBuild and Reload |
⌘ Cmd + ↑ Shift + B |
BuildLoad All (devtools) |
⌘ Cmd + ↑ Shift + L |
BuildTest Package (Desktop) |
⌘ Cmd + ↑ Shift + T |
BuildTest Package (Web) |
⌘ Cmd + Alt + F7 |
BuildCheck Package |
⌘ Cmd + ↑ Shift + E |
BuildDocument Package |
⌘ Cmd + ↑ 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 |
⌘ Cmd + ⌥ Option + F11 |
PlotsNext plot |
⌘ Cmd + ⌥ Option + F12 |
Git / SVNDiff active source document |
Ctrl + ⌥ Option + D |
Git / SVNCommit changes |
Ctrl + ⌥ Option + M |
Git / SVNScroll diff view |
Ctrl + ↑ ↓ |
Git / SVNStage/Unstage (Git) |
Space |
SessionQuit Session (desktop only) |
⌘ Cmd + Q |
SessionRestart R Session |
⌘ Cmd + ↑ Shift + F10 |