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