Hotkeys and shortcuts for RStudio (Windows)

(Total 134)

Ctrl + 2
Console
Move cursor to console
Ctrl + L
Console
Clean console
Home
Console
Move cursor to beginning of line
End
Console
Move cursor to end of line
Up / Down
Console
Navigate command history
Ctrl + Up
Console
Popup command history
Esc
Console
Interrupt currently executing command
Ctrl + Shift + H
Console
Change working directory
Ctrl + .
Source
Goto file/function
Ctrl + 1
Source
Move cursor 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
Preview HTML (markdown and HTML)
Ctrl + Shift + K
Source
Compile notebook/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 from current line to document end
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 + Shift + P
Source
Show diagnostics
Alt + Up/Down
Source
Move lines Up/Down
Shift + Alt + Up/Down
Source
Copy lines Up/Down
Ctrl + P
Source
Jump to matching Brace/Paren
Ctrl + Shift + E
Source
Expand to matching Brace/Paren
Ctrl + Shift + Alt + E
Source
Select to matching Brace/Paren
Ctrl + Alt + Up
Source
Add cursor above current cursor
Ctrl + Alt + Down
Source
Add cursor beow current cursor
Ctrl + Alt + Shift + Up
Source
Move active cursor up
Ctrl + Alt + Shift + Down
Source
Move Active Cursor Down
Ctrl + F
Source
Find and replace
F3
Source
Find next
Shift + F3
Source
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
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
Views
Move focus to Source Editor
Ctrl + 2
Views
Move focus to Console
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
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 + E
Build
Check package
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 + Up/Down
Git / SVN
Scroll diff view
Spacebar
Git / SVN
Stage/unstage(Git)
ENter
Git / SVN
Stage/unstage and move to next (Git)
Ctrl + Q
Session
Quit Session (desktop only)
Ctrl + Shift + F10
Session
Restart 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++)