Editor keyboard shortcut list
This topic lists the common keyboard shortcuts for the Dataphin code editor in the Chrome browser. These shortcuts can improve your development efficiency.
Operation | macOS | Windows |
Common operations | ||
Run (Stop running) | Command + Enter | Ctrl + Enter |
Execute current statement | Command + Option + Enter | Ctrl + Shift + Enter |
Select all | Command + A | Ctrl + A |
Save | Command + S | Ctrl + S |
Undo | Command + Z | Ctrl + Z |
Redo | Command + Shift + Z | Ctrl + Shift + Z |
Same-word selection | Command + D | Ctrl + D |
Cut current line | Command + X | Ctrl + X |
Copy current line | Command + C | Ctrl + C |
Find | Command + F | Ctrl + F |
Replace | Command + Option + F | Ctrl + H |
Go to line | Control + G | Ctrl + G |
Move current line down or up | Option + ↓ or Option + ↑ | Alt + ↓ or Alt + ↑ |
Copy current line down or up | Shift + Option + ↓ or Shift + Option + ↑ | Shift + Alt + ↓ or Shift + Alt + ↑ |
Go to matching bracket | Shift + Command + \ | Shift + Ctrl + \ |
Increase or decrease indent | Command + ] or Command + [ | Ctrl + ] or Ctrl + [ |
Go to start or end of current line | Command + ← or Command + → | Home or End |
Go to start or end of file | Command + ↑ or Command + ↓ | Ctrl + Home or Ctrl + End |
Cursor control | ||
Collapse or expand current region | Option + Command + [ or Option + Command + ] | Shift + Ctrl + [ or Shift + Ctrl + ] |
Comment or uncomment current line or code block | Command + / | Ctrl + / |
Insert cursor | Option + Click | Ctrl + Click |
Undo last cursor operation | Command + U | Ctrl + U |
Find next or previous selection | Command + G or Shift + Command + G | Ctrl + G or Ctrl + Shift + G |
Editing multiple columns | Shift + Option + Drag | Ctrl + Shift + Drag |