Editor Keyboard Shortcuts
R2026bYou can use several keyboard shortcuts to facilitate working with the Editor. To customize the default set of keyboard shortcuts, see Customize Keyboard Shortcuts.
General Editor Shortcuts
| Action | Keyboard Shortcut on Windows® and Linux® | Keyboard Shortcut on macOS |
|---|---|---|
Maximize Editor | Ctrl+Shift+M | Command+Shift+M |
Undock Editor | Ctrl+Shift+U | Ctrl+Shift+U |
Dock Editor | Ctrl+Shift+D | Ctrl+Shift+D |
Make the Editor the active tool | Ctrl+Shift+0 | Command+Shift+0 |
File Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
New blank script | Ctrl+N | Command+N |
Open file | Ctrl+O | Command+O |
Reopen last closed file | Ctrl+Shift+T | Command+Shift+T |
Save active file | Ctrl+S | Command+S |
Print active file | Ctrl+P | Command+P |
Close active file | Ctrl+W | Command+W |
Undo a modification, returning it to the previous state | Ctrl+Z | Command+Z |
Redo an undone modification, returning it to the changed state | Ctrl+Y | Command+Shift+Z |
Navigation Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Go to line | Ctrl+G | Command+L |
Set or clear bookmark on current line | Ctrl+F2 | Command+F2 |
Move to next bookmark | F2 | F2 |
Move to previous bookmark | Shift+F2 | Shift+F2 |
Back | Alt+Left | Ctrl+Minus (–) |
Forward | Alt+Right | Ctrl+Shift+Minus (–) |
| Go to previous variable instance | Alt+Up | Option+Up |
| Go to next variable instance | Alt+Down | Option+Down |
| Go to beginning of file | Ctrl+Home | Command+Up |
| Go to end of file | Ctrl+End | Command+Down |
Find and Replace Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Find | Ctrl+F | Command+F |
Find next | F3 | Command+G |
Find previous | Shift+F3 | Command+Shift+G |
Match case | Alt+M | N/A |
Match whole word | Alt+W | N/A |
Search using regular expression | Alt+X | N/A |
Find in selection | Alt+S | N/A |
Find and replace | Ctrl+H | Command+Option+F |
Replace | Alt+R | N/A |
Replace all | Alt+A | N/A |
Close Find and Replace dialog | Esc | Esc |
Find selection in Editor | Ctrl+F3 | Command+E |
Text Shortcuts
These shortcuts are available in live scripts and live functions only.
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Insert a line of text | Alt+Enter | Option+Enter |
Normal text | Ctrl+Alt+T | Ctrl+Option+T |
Heading 1 text | Ctrl+Shift+1 | Ctrl+Shift+1 |
Heading 2 text | Ctrl+Shift+2 | Ctrl+Shift+2 |
Heading 3 text | Ctrl+Shift+3 | Ctrl+Shift+3 |
Title text | Ctrl+Alt+L | Ctrl+Option+L |
Bold | Ctrl+B | Command+B |
Italic | Ctrl+I | Command+I |
Underline | Ctrl+U | Command+U |
Monospaced | Ctrl+M | Ctrl+M |
Bulleted list | Ctrl+Alt+U | Ctrl+Option+U |
Numbered list | Ctrl+Alt+O | Ctrl+Option+O |
Hyperlink | Ctrl+K | Command+K |
Equation | Ctrl+Shift+E | Command+Shift+E |
LaTeX equation | Ctrl+Shift+L | Command+Shift+L |
Code Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Comment | Ctrl+R | Command+/ |
Uncomment | Ctrl+Shift+R | Command+Option+/ |
Wrap comments | Ctrl+J | Command+Shift+W |
Smart indent | Ctrl+I | Command+I |
Increase indent | Ctrl+] | Command+] |
Decrease indent | Ctrl+[ | Command+[ |
Copy line | Ctrl+L | Command+C |
Cut line | Ctrl+X | Command+X |
Duplicate line | Ctrl+Shift+C | Command+Shift+C |
Change case of selection | Ctrl+Shift+A | Command+Shift+A |
Insert line of code or convert a line between code and text (Live scripts and live functions only) | Alt+Enter | Option+Enter |
Move focus between code and output (Live scripts and live functions only) | Ctrl+Shift+O | Command+Option+O |
| Open Code Analyzer message or expand details | Ctrl+M | Command+M |
Section Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Insert section break | Ctrl+Alt+Enter | Command+Option+Enter |
Run current section | Ctrl+Enter | Command+Enter |
Run current section and advance | Ctrl+Shift+Enter | Command+Shift+Enter |
| Go to previous section | Ctrl+Up | Command+Up |
| Go to next section | Ctrl+Down | Command+Down |
Run Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Run the active file | F5 | F5 or Command+Option+R |
Pause the running file | Ctrl+F5 | Command+F5 |
Continue | F5 | F5 or Command+Option+R |
Set/clear breakpoint at line | F12 | F12 or Command+\ |
Step | F10 | F10 or Command+Shift+O |
Step in | F11 | F11 or Command+Shift+I |
Step out | Shift+F11 | Shift+F11 or Command+Shift+U |
Quit execution | Shift+F5 | Shift+F5 |
Display Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
View full screen | Ctrl+F11 | Command+F11 |
Zoom in | Ctrl+Plus (+) or Ctrl+= | Command+Plus (+) or Command+= |
Zoom out | Ctrl+Minus (–) | Command+Minus (–) |
Reset zoom | Ctrl+Alt+0 | Command+Option+0 |
| Show/hide markdown preview | Ctrl+Shift+K | Command+Shift+K |
Code Folding Shortcuts
These shortcuts are available in the Editor only.
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Expand current fold | Ctrl+Shift+Period (.) | Ctrl+Shift+Period (.) |
Collapse current fold | Ctrl+Period (.) | Ctrl+Period (.) |
Expand all | Ctrl+Shift+Comma (,) | Ctrl+Shift+Comma (,) |
Collapse all | Ctrl+Comma (,) | Ctrl+Comma (,) |
Spelling Shortcuts
| Action | Keyboard Shortcut on Windows and Linux | Keyboard Shortcut on macOS |
|---|---|---|
Next spelling issue | Alt+F7 | Option+F7 |
Previous spelling issue | Alt+Shift+F7 | Option+Shift+F7 |