Hotkeys and shortcuts for RStudio

(Total 133)

Ctrl + 2
Views
Move focus to Console
Ctrl + L
Console
Clear console
Home
Console
Move cursor to beginning of line
End
Console
Move cursor to end of line
↑  ↓
Completions (Console and Source)
Navigate candidates
Ctrl +
Console
Popup command history
Esc
Completions (Console and Source)
Dismiss completion popup
Ctrl + ↑   Shift + H
Console
Change working directory
Ctrl + .
Source
Goto File/Function
Ctrl + 1
Views
Move focus to Source Editor
Ctrl + ↑   Shift + N
Source
New document (except on Chrome/Windows)
Ctrl + Alt + ↑   Shift + N
Source
New document (Chrome only)
Ctrl + O
Source
Open document
Ctrl + S
Source
Save active document
Ctrl + W
Source
Close active document (except on Chrome)
Ctrl + Alt + W
Source
Close active document (Chrome only)
Ctrl + ↑   Shift + W
Source
Close all open documents
Ctrl + ↑   Shift + K
Source
Compile PDF (TeX and Sweave)
Ctrl + Alt + I
Source
Insert chunk (Sweave and Knitr)
Ctrl + ↑   Shift + R
Source
Insert code section
Ctrl + ⤶ Enter
Source
Run current line/selection
Alt + ⤶ Enter
Source
Run current line/selection (retain cursor position)
Ctrl + ↑   Shift + P
Source
Re-run previous region
Ctrl + Alt + R
Source
Run current document
Ctrl + Alt + B
Source
Run from document beginning to current line
Ctrl + Alt + E
Source
Run from current line to document end
Ctrl + Alt + F
Source
Run the current function definition
Ctrl + Alt + T
Source
Run the current code section
Ctrl + Alt + P
Source
Run previous Sweave/Rmd code
Ctrl + Alt + C
Source
Run the current Sweave/Rmd chunk
Ctrl + Alt + N
Source
Run the next Sweave/Rmd chunk
Ctrl + ↑   Shift + O
Source
Source a file
Ctrl + ↑   Shift + S
Source
Source the current document
Ctrl + ↑   Shift + ⤶ Enter
Source
Source the current document (with echo)
Alt + L
Source
Fold Selected
↑   Shift + Alt + L
Source
Unfold Selected
Alt + O
Source
Fold All
↑   Shift + Alt + O
Source
Unfold All
↑   Shift + Alt + G
Source
Go to line
↑   Shift + Alt + J
Source
Jump to
Ctrl + ↑   Shift + .
Source
Switch to tab
Ctrl + F11
Source
Previous tab
Ctrl + F12
Source
Next tab
Ctrl + ↑   Shift + F11
Source
First tab
Ctrl + ↑   Shift + F12
Source
Last tab
Ctrl + F9
Source
Navigate back
Ctrl + F10
Source
Navigate forward
Ctrl + Alt + X
Source
Extract function from selection
Ctrl + Alt + V
Source
Extract variable from selection
Ctrl + I
Source
Reindent lines
Ctrl + ↑   Shift + C
Source
Comment/uncomment current line/selection
Ctrl + ↑   Shift + /
Source
Reflow Comment
Ctrl + ↑   Shift + A
Source
Reformat Selection
Ctrl + ↑   Shift + Alt + P
Source
Show Diagnostics
Alt + ↑  ↓
Source
Move Lines Up/Down
↑   Shift + Alt + ↑  ↓
Editing (Console and Source)
Select to Start/End
Ctrl + P
Source
Jump to Matching Brace/Paren
Ctrl + ↑   Shift + E
Build
Check Package
Ctrl + ↑   Shift + Alt + E
Source
Select to Matching Brace/Paren
Ctrl + Alt +
Source
Add Cursor Above Current Cursor
Ctrl + Alt +
Source
Add Cursor Below Current Cursor
Ctrl + Alt + ↑   Shift +
Source
Move Active Cursor Up
Ctrl + Alt + ↑   Shift +
Source
Move Active Cursor Down
Ctrl + F
Source
Find and Replace
F3
Source
(Windows) Find Next
Ctrl + G
Source
(Linux) Find Next
↑   Shift + F3
Source
(Windows) Find Previous
Ctrl + ↑   Shift + G
Source
(Linux) Find Previous
Ctrl + F3
Source
Use Selection for Find
Ctrl + ↑   Shift + J
Source
Replace and Find
Ctrl + ↑   Shift + F
Source
Find in Files
F7
Source
Check Spelling
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 + ←  →
Editing (Console and Source)
Jump to Word
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)
Jump to Start/End
Ctrl + D
Editing (Console and Source)
Delete Line
↑   Shift + ← ↑ → ↓
Editing (Console and Source)
Select
Ctrl + ↑   Shift + ←  →
Editing (Console and Source)
Select Word
Alt + ↑   Shift +
Editing (Console and Source)
Select to Line Start
Alt + ↑   Shift +
Editing (Console and Source)
Select to Line End
Shift + Page Up / Down
Editing (Console and Source)
Select Page Up/Down
Ctrl + ↑   Shift + Home
Editing (Console and Source)
Select to Start/End
Ctrl + ↑   Shift + End
Editing (Console and Source)
Select to Start/End
Ctrl + ⬅ Backspace
Editing (Console and Source)
Delete Word Left
⭾ 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 + 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++)
Ctrl + Space
Completions (Console and Source)
Attempt completion
⤶ Enter
Git / SVN
Stage/Unstage and move to next (Git)
Completions (Console and Source)
Accept selected candidate
Ctrl + 3
Views
Move focus to Help
Ctrl + 4
Views
Show History
Ctrl + 5
Views
Show Files
Ctrl + 6
Views
Show Plots
Ctrl + 7
Views
Show Packages
Ctrl + 8
Views
Show Environment
Ctrl + 9
Views
Show Git/SVN
Ctrl + 0
Views
Show Build
Ctrl + F8
Views
Sync Editor & PDF Preview
Alt + ↑   Shift + K
Views
Show Keyboard Shortcut Reference
Ctrl + ↑   Shift + B
Build
Build and Reload
Ctrl + ↑   Shift + L
Build
Load All (devtools)
Ctrl + ↑   Shift + T
Build
Test Package (Desktop)
Ctrl + Alt + F7
Build
Test Package (Web)
Ctrl + ↑   Shift + D
Build
Document Package
↑   Shift + F9
Debug
Toggle Breakpoint
F10
Debug
Execute Next Line
↑   Shift + F4
Debug
Step Into Function
↑   Shift + F6
Debug
Finish Function/Loop
↑   Shift + F5
Debug
Continue
↑   Shift + F8
Debug
Stop Debugging
Ctrl + Alt + F11
Plots
Previous plot
Ctrl + Alt + F12
Plots
Next plot
Ctrl + Alt + D
Git / SVN
Diff active source document
Ctrl + Alt + M
Git / SVN
Commit changes
Ctrl + ↑/↓
Git / SVN
Scroll diff view
Space
Git / SVN
Stage/Unstage (Git)
Ctrl + Q
Session
Quit Session (desktop only)
Ctrl + ↑   Shift + F10
Session
Restart R Session