# Keyboard Shortcuts

MyScale supports the following keyboard shortcuts in the SQL Workspace.

Function Windows MacOS
Show keyboard shortcuts alt + shift + ? opt + shift + ?
Insert new line / indented line Enter Enter
Run query ctrl + Enter ⌘ + Enter
Run all queries ctrl + shift + Enter ⌘ + shift + Enter
Indent line ctrl + ] ⌘ + ]
De-indent line ctrl + [ ⌘ + [
Toggle comment ctrl + / ⌘ + /
Toggle block comment alt + shift + a opt + shift + a
Format code alt + shift + f opt + shift + f
Toggle word wrap alt + z opt + z
Copy line up alt + shift + ↑ opt + shift + ↑
Copy line down alt + shift + ↓ opt + shift + ↓
Move the selection one line up alt + ↑ opt + ↑
Move the selection one line down alt + ↓ opt + ↓
Go to start ctrl + ↑ ⌘ + ↑
Go to end ctrl + ↓ ⌘ + ↓
Go to line start ctrl + ← ⌘ + ←
Go to line end ctrl + → ⌘ + →
Go line up
Go line down
Go right
Go left
Select to start ctrl + shift + ↑ ⌘ + shift + ↑
Select to end ctrl + shift + ↓ ⌘ + shift + ↓
Select to line start ctrl + shift + ← ⌘ + shift + ←
Select to line end ctrl + shift + → ⌘ + shift + →
Remove to line end alt + delete ctrl + k
Delete line ctrl + shift + k ⌘ + shift + k
Select all ctrl + a ⌘ + a
Select to word start alt + shift + ← opt + shift + ←
Select to word end alt + shift + → opt + shift + →
Go to word start alt + ← opt + ←
Go to word end alt + → opt + →
Select right shift + → shift + →
Select left shift + ← shift + ←
Select up shift + ↑ shift + ↑
Select down shift + ↓ shift + ↓
Undo ctrl + z ⌘ + z
Last Updated: Wed Mar 20 2024 08:26:02 GMT+0000