+ Indicates to hold the previous key, while pressing the next key.
> Indicates to tap the previous key, releasing it before pressing the next key.
Find the shortcuts list below:
# | Description | PC Shortcut | Mac Shortcut | |
---|---|---|---|---|
Console | ||||
1 | Move cursor to Console | Ctrl+2 |
^+2 |
|
2 | Clear console | Ctrl+L |
^+L |
|
3 | Move cursor to beginning of line | Home |
Home |
|
4 | Move cursor to end of line | End |
End |
|
5 | Navigate command history | Up |
Up |
|
6 | Popup command history | Ctrl+Up |
^+Up |
|
7 | Interrupt currently executing command | Escape |
Escape |
|
8 | Change working directory | Ctrl+Shift+H |
^+⇧+H |
|
Source 1 | ||||
9 | Goto File/Function | Ctrl+. |
^+. |
|
10 | Move cursor to Source Editor | Ctrl+1 |
^+1 |
|
11 | New document (except on Chrome/Windows) | Ctrl+Shift+N |
^+⇧+N |
|
12 | New document (Chrome only) | Ctrl+Alt+Shift+N |
^+⌥+⇧+N |
|
13 | Open document | Ctrl+O |
^+O |
|
14 | Save active document | Ctrl+S |
^+S |
|
15 | Close active document (except on Chrome) | Ctrl+W |
^+W |
|
16 | Close active document (Chrome only) | Ctrl+Alt+W |
^+⌥+W |
|
17 | Close all open documents | Ctrl+Shift+W |
^+⇧+W |
|
18 | Preview HTML (Markdown and HTML) | Ctrl+Shift+K |
^+⇧+K |
|
19 | Knit Document (knitr) | Ctrl+Shift+K |
^+⇧+K |
|
20 | Compile Notebook | Ctrl+Shift+K |
^+⇧+K |
|
21 | Compile PDF (TeX and Sweave) | Ctrl+Shift+K |
^+⇧+K |
|
22 | Insert chunk (Sweave and Knitr) | Ctrl+Alt+I |
^+⌥+I |
|
23 | Insert code section | Ctrl+Shift+R |
^+⇧+R |
|
24 | Run current line/selection | Ctrl+Enter |
^+Enter |
|
25 | Run current line/selection (retain cursor position) | Alt+Enter |
⌥+Enter |
|
26 | Re-run previous region | Ctrl+Shift+P |
^+⇧+P |
|
27 | Run current document | Ctrl+Alt+R |
^+⌥+R |
|
28 | Run from document beginning to current line | Ctrl+Alt+B |
^+⌥+B |
|
29 | Run from current line to document end | Ctrl+Alt+E |
^+⌥+E |
|
30 | Run the current function definition | Ctrl+Alt+F |
^+⌥+F |
|
31 | Run the current code section | Ctrl+Alt+T |
^+⌥+T |
|
32 | Run previous Sweave/Rmd code | Ctrl+Alt+P |
^+⌥+P |
|
33 | Run the current Sweave/Rmd chunk | Ctrl+Alt+C |
^+⌥+C |
|
34 | Run the next Sweave/Rmd chunk | Ctrl+Alt+N |
^+⌥+N |
|
Source 2 | ||||
35 | Source a file | Ctrl+Shift+O |
^+⇧+O |
|
36 | Source the current document | Ctrl+Shift+S |
^+⇧+S |
|
37 | Source the current document (with echo) | Ctrl+Shift+Enter |
^+⇧+Enter |
|
38 | Fold Selected | Alt+L |
⌥+L |
|
39 | Unfold Selected | Shift+Alt+L |
⇧+⌥+L |
|
40 | Fold All | Alt+O |
⌥+O |
|
41 | Unfold All | Shift+Alt+O |
⇧+⌥+O |
|
42 | Go to line | Shift+Alt+G |
⇧+⌥+G |
|
43 | Jump to | Shift+Alt+J |
⇧+⌥+J |
|
44 | Switch to tab | Ctrl+Shift+. |
^+⇧+. |
|
45 | Previous tab | Ctrl+F11 |
^+F11 |
|
46 | Next tab | Ctrl+F12 |
^+F12 |
|
47 | First tab | Ctrl+Shift+F11 |
^+⇧+F11 |
|
48 | Last tab | Ctrl+Shift+F12 |
^+⇧+F12 |
|
49 | Navigate back | Ctrl+F9 |
^+F9 |
|
50 | Navigate forward | Ctrl+F10 |
^+F10 |
|
Source 3 | ||||
51 | Extract function from selection | Ctrl+Alt+X |
^+⌥+X |
|
52 | Extract variable from selection | Ctrl+Alt+V |
^+⌥+V |
|
53 | Reindent lines | Ctrl+I |
^+I |
|
54 | Comment/uncomment current line/selection | Ctrl+Shift+C |
^+⇧+C |
|
55 | Reflow Comment | Ctrl+Shift+OemQuestion |
^+⇧+OemQuestion |
|
56 | Reformat Selection | Ctrl+Shift+A |
^+⇧+A |
|
57 | Show Diagnostics | Ctrl+Shift+Alt+P |
^+⇧+⌥+P |
|
58 | Move Lines Up | Alt+Up |
⌥+Up |
|
59 | Copy Lines Up | Shift+Alt+Up |
⇧+⌥+Up |
|
60 | Jump to Matching Brace/Paren | Ctrl+P |
^+P |
|
61 | Expand to Matching Brace/Paren | Ctrl+Shift+E |
^+⇧+E |
|
62 | Select to Matching Brace/Paren | Ctrl+Shift+Alt+E |
^+⇧+⌥+E |
|
63 | Add Cursor Above Current Cursor | Ctrl+Alt+Up |
^+⌥+Up |
|
64 | Add Cursor Below Current Cursor | Ctrl+Alt+Down |
^+⌥+Down |
|
65 | Move Active Cursor Up | Ctrl+Alt+Shift+Up |
^+⌥+⇧+Up |
|
66 | Move Active Cursor Down | Ctrl+Alt+Shift+Down |
^+⌥+⇧+Down |
|
67 | Find and Replace | Ctrl+F |
^+F |
|
68 | Find Next | F3 |
F3 |
|
69 | Find Previous | Shift+F3 |
⇧+F3 |
|
70 | Use Selection for Find | Ctrl+F3 |
^+F3 |
|
71 | Replace and Find | Ctrl+Shift+J |
^+⇧+J |
|
72 | Find in Files | Ctrl+Shift+F |
^+⇧+F |
|
73 | Check Spelling | F7 |
F7 |
|
Editing (Console and Source) | ||||
74 | Undo | Ctrl+Z |
^+Z |
|
75 | Redo | Ctrl+Shift+Z |
^+⇧+Z |
|
76 | Cut | Ctrl+X |
^+X |
|
77 | Copy | Ctrl+C |
^+C |
|
78 | Paste | Ctrl+V |
^+V |
|
79 | Select All | Ctrl+A |
^+A |
|
80 | Jump to Word | Ctrl+Right |
^+Right |
|
81 | Delete Line | Ctrl+D |
^+D |
|
82 | Select Word | Ctrl+Shift+Right |
^+⇧+Right |
|
83 | Select to Line Start | Alt+Shift+Left |
⌥+⇧+Left |
|
84 | Select to Line End | Alt+Shift+Right |
⌥+⇧+Right |
|
85 | Select Down | Shift+PgDn |
⇧+PgDn |
|
86 | Indent (at beginning of line) | Tab |
Tab |
|
87 | Outdent | Shift+Tab |
⇧+Tab |
|
88 | Yank line up to cursor | Ctrl+U |
^+U |
|
89 | Yank line after cursor | Ctrl+K |
^+K |
|
90 | Insert currently yanked text | Ctrl+Y |
^+Y |
|
91 | Insert assignment operator | Alt+Subtract |
⌥+Subtract |
|
92 | Insert pipe operator | Ctrl+Shift+M |
^+⇧+M |
|
93 | Show help for function at cursor | F1 |
F1 |
|
94 | Show source code for function at cursor | F2 |
F2 |
|
95 | Find usages for symbol at cursor (C++) | Ctrl+Alt+U |
^+⌥+U |
|
Completions & Views | ||||
96 | Attempt completion | Tab |
Tab |
|
97 | Accept selected candidate | Enter |
Enter |
|
98 | Dismiss completion popup | Escape |
Escape |
|
99 | Move focus to Source Editor | Ctrl+1 |
^+1 |
|
100 | Move focus to Console | Ctrl+2 |
^+2 |
|
101 | Move focus to Help | Ctrl+3 |
^+3 |
|
102 | Show History | Ctrl+4 |
^+4 |
|
103 | Show Files | Ctrl+5 |
^+5 |
|
104 | Show Plots | Ctrl+6 |
^+6 |
|
105 | Show Packages | Ctrl+7 |
^+7 |
|
106 | Show Environment | Ctrl+8 |
^+8 |
|
107 | Show Git/SVN | Ctrl+9 |
^+9 |
|
108 | Show Build | Ctrl+0 |
^+0 |
|
109 | Sync Editor & PDF Preview | Ctrl+F8 |
^+F8 |
|
110 | Show Keyboard Shortcut Reference | Alt+Shift+K |
⌥+⇧+K |
|
Build & Debug | ||||
111 | Build and Reload | Ctrl+Shift+B |
^+⇧+B |
|
112 | Load All (devtools) | Ctrl+Shift+L |
^+⇧+L |
|
113 | Test Package (Desktop) | Ctrl+Shift+T |
^+⇧+T |
|
114 | Test Package (Web) | Ctrl+Alt+F7 |
^+⌥+F7 |
|
115 | Check Package | Ctrl+Shift+E |
^+⇧+E |
|
116 | Document Package | Ctrl+Shift+D |
^+⇧+D |
|
117 | Toggle Breakpoint | Shift+F9 |
⇧+F9 |
|
118 | Execute Next Line | F10 |
F10 |
|
119 | Step Into Function | Shift+F4 |
⇧+F4 |
|
120 | Finish Function/Loop | Shift+F6 |
⇧+F6 |
|
121 | Continue | Shift+F5 |
⇧+F5 |
|
122 | Stop Debugging | Shift+F8 |
⇧+F8 |
|
Plots & Git & Session | ||||
123 | Previous plot | Ctrl+Alt+F11 |
^+⌥+F11 |
|
124 | Next plot | Ctrl+Alt+F12 |
^+⌥+F12 |
|
125 | Diff active source document | Ctrl+Alt+D |
^+⌥+D |
|
126 | Commit changes | Ctrl+Alt+M |
^+⌥+M |
|
127 | Scroll diff view | Ctrl+Down |
^+Down |
|
128 | Stage/Unstage (Git) | Space |
Space |
|
129 | Stage/Unstage and move to next (Git) | Enter |
Enter |
|
130 | Quit Session (desktop only) | Ctrl+Q |
^+Q |
|
131 | Restart R Session | Ctrl+Shift+F10 |
^+⇧+F10 |