Keymap


All shortcuts live in KeyMap Preferences: open it from Preferences → KeyMap. They are grouped by scope and can be searched, changed, and reset.

KeyMap Preferences

KeyMap Preferences

KeyMap Preferences: groups on the left, commands in the middle, key bindings on the right

The dialog has three parts:

AreaDescription
Search boxFilters by command name as you type; Reset on the right clears it
Command tableCommand description, keyboard Shortcuts current binding, When active scope
Bottom buttonsCancel discards changes, Apply saves

Scopes

The When column determines the scope in which a shortcut applies; the same key can be bound to different commands in different scopes:

ScopeApplies to
GlobalThe whole application
NavThe navigation tree on the left
DataGridThe data grid
QueryNavThe query file tree
QueryQuery results and execution
EditorThe SQL editor

Search and filter

  • The search box matches command names; for example, format leaves only formatting-related commands.
  • Groups can be collapsed; click the arrow to the left of a group name to see only one category.
  • No shortcut means the command is currently unbound; click the keyboard Shortcuts column to record one.

Rebind a key

  1. Find the target command (search or expand a group).
  2. Press the new key combination in the keyboard Shortcuts column.
  3. Click Apply to save.

If you make a mistake, click Cancel to discard it; to restore defaults, use Reset to the right of the search box.

Default shortcuts

Defaults total 121 entries, grouped by scope. Modified bindings are governed by KeyMap Preferences.

Global · 12
CommandmacOSWindows
Settings⌘,Ctrl+,
Open File…⌘OCtrl+O
Close Window⌘⇧WCtrl+Shift+W
Zoom In⌘=Ctrl+=
Zoom Out⌘-Ctrl+-
Open Everything⌘⇧PCtrl+Shift+P
Refresh TabF5F5
Close Tab⌘WCtrl+W
Back in History⌘[Ctrl+[
Forward in History⌘]Ctrl+]
Reload Current Window⌘⇧RCtrl+Shift+R
Close Window⌘⇧WCtrl+Shift+W
Nav · 5
CommandmacOSWindows
Refresh⌘RCtrl+R
Pin to Top⌘TCtrl+T
Rename…ENTERF2
toggle filter panel⌘FCtrl+F
refresh data⌘RCtrl+R
DataGrid · 9
CommandmacOSWindows
Search in data⌘FCtrl+F
Edit…ENTERENTER
Add Row⌘NCtrl+N
Delete Row⌘BACKSPACEDELETE
Duplicate Row⌘DCtrl+D
Reload⌘RCtrl+R
Reload data⌘RCtrl+R
Prev Page⌘⇧[Ctrl+Shift+[
Next Page⌘⇧]Ctrl+Shift+]
QueryNav · 3
CommandmacOSWindows
Reload⌘RCtrl+R
New Editor File…⌘NCtrl+N
Rename…ENTERENTER
Query · 1
CommandmacOSWindows
Reload: Reload sqlEditor content⌘RCtrl+R
Editor · 91
CommandmacOSWindows
Execute: Execute the current/selected SQL. It will be split and executed separately.⌘ENTERCtrl+ENTER
aiChat: show inline AI Chat on the current cursor position.⌘ICtrl+I
SmartHit: Hold Key and hover to view SQL syntax hints and help information⌘Ctrl
RefactByRename: Rename the selected token and simultaneously update all identical ones within the current SQL statement.F2F2
AddCursorAbove: Adds a cursor above the current cursor position.⌃⌥UPCtrl+Alt+UP
AddCursorAboveSkipCurrent: Adds a cursor above the current cursor position while skipping the current cursor.⌃⌥⇧UPCtrl+Alt+Shift+UP
AddCursorBelow: Adds a cursor below the current cursor position.⌃⌥DOWNCtrl+Alt+DOWN
AddCursorBelowSkipCurrent: Adds a cursor below the current cursor position while skipping the current cursor.⌃⌥⇧DOWNCtrl+Alt+Shift+DOWN
AlignCursors: Aligns multiple cursors or selections.⌃⌥ACtrl+Alt+A
Backspace: Deletes the character before the cursor or selected text.⌃BACKSPACE|SHIFTBACKSPACE|BACKSPACE|CTRLHShift+BACKSPACE|BACKSPACE
BlockIndent: Indents a block of code or selected lines.⌃]Ctrl+]
BlockOutdent: Outdents (removes indentation) a block of code or selected lines.⌃[Ctrl+[
CenterSelection: Centers the current selection or cursor position.⌃L“
CopyLinesDown: Copies the current line or selected lines and pastes them below.⌘⌥DOWNAlt+Shift+DOWN
CopyLinesUp: Copies the current line or selected lines and pastes them above.⌘⌥UPAlt+Shift+UP
Del: Deletes the character at the cursor or selected text.DELETE|CTRLD|SHIFTDELETEDELETE
DuplicateSelection: Creates a duplicate of the current selection or line.⌘⇧DCtrl+Shift+D
ExpandToMatching: Expands the selection to the matching opening or closing character, such as parentheses or brackets.⌃⇧MCtrl+Shift+M
ExpandToLine: Expands the current selection to the entire line.⌘⇧LCtrl+Shift+L
Find: Opens a search dialog to find text in the document.⌘FCtrl+F
FindAll: Finds all occurrences of a search term in the document.⌃⌥GCtrl+Alt+K
FindNext: Finds the next occurrence of the last search term.⌘GCtrl+K
FindPrevious: Finds the previous occurrence of the last search term.⌘⇧GCtrl+Shift+K
Fold: Folds (hides) a block of code or text.⌘⌥L|CMDF1Alt+L|CTRL+F1
FoldOther: Folds all other blocks of code except the current block.⌘⌥0Alt+0
FoldAll: Folds all blocks of code or text in the document.⌃⌘⌥0“
GoLineDown: Moves the cursor down one line.DOWN|CTRLNDOWN
GoLineUp: Moves the cursor up one line.UP|CTRLPUP
GoToEnd: Moves the cursor to the end of the document or line.⌘END|CMDDOWNCtrl+END
GoToLeft: Moves the cursor to the left.LEFT|CTRLBLEFT
GoToLine: Moves the cursor to a specific line number.⌘LCtrl+L
GoToLineEnd: Moves the cursor to the end of the current line.⌘RIGHT|END|CTRLEAlt+RIGHT|END
GoToLineStart: Moves the cursor to the start of the current line.⌘LEFT|HOME|CTRLAAlt+LEFT|HOME
GoToPageDown: Moves the cursor down one page.PAGEDOWN|CTRLVPAGEDOWN
GoToRight: Moves the cursor to the right.RIGHT|CTRLFRIGHT
GoToStart: Moves the cursor to the start of the document or line.⌘HOME|CMDUPCtrl+HOME
GoToWordLeft: Moves the cursor to the left by word.⌥LEFTCtrl+LEFT
GoToWordRight: Moves the cursor to the right by word.⌥RIGHTCtrl+RIGHT
Indent: Indents the current line or selected lines.TABTAB
JumpToMatching: Jumps the cursor to the matching opening or closing character.⌃PCtrl+P
ModifyNumberDown: Decreases the value of the selected number or the number at the cursor.⌥⇧DOWNCtrl+Shift+DOWN
ModifyNumberUp: Increases the value of the selected number or the number at the cursor.⌥⇧UPCtrl+Shift+UP
MoveLinesDown: Moves the current line or selected lines down.⌥DOWNAlt+DOWN
MoveLinesUp: Moves the current line or selected lines up.⌥UPAlt+UP
Outdent: Outdents (removes indentation) the current line or selected lines.⇧TABShift+TAB
PageDown: Scrolls the document down one page.⌥PAGEDOWN“
PageUp: Scrolls the document up one page.⌥PAGEUP“
Redo: Redoes the last undone action.⌘⇧Z|CMDYCtrl+Shift+Z|CTRL+Y
RemoveLine: Deletes the current line or selected lines.⌘DCtrl+D
RemoveToLineEnd: Deletes from the cursor to the end of the line.⌃K|CMDDELETEAlt+DELETE
RemoveToLineEndHard: Deletes from the cursor to the end of the line, including the newline character.“Ctrl+Shift+DELETE
RemoveToLineStart: Deletes from the cursor to the start of the line.⌘BACKSPACEAlt+BACKSPACE
RemoveToLineStartHard: Deletes from the cursor to the start of the line, including the newline character.“Ctrl+Shift+BACKSPACE
RemoveWordLeft: Deletes the word to the left of the cursor.⌥BACKSPACE|CTRL⌥BACKSPACECtrl+BACKSPACE
RemoveWordRight: Deletes the word to the right of the cursor.⌥DELETECtrl+DELETE
Replace: Opens a dialog to search and replace text in the document.⌘⌥FCtrl+H
ReplayMacro: Replays a recorded macro.⌘⇧ECtrl+Shift+E
ScrollDown: Scrolls the document down.“Ctrl+DOWN
ScrollUp: Scrolls the document up.“Ctrl+UP
SelectMoreAfter: Extends the selection to the next occurrence after the current selection.⌃⌥RIGHTCtrl+Alt+RIGHT
SelectMoreBefore: Extends the selection to the next occurrence before the current selection.⌃⌥LEFTCtrl+Alt+LEFT
SelectNextAfter: Selects the next occurrence after the current selection.⌃⌥⇧RIGHTCtrl+Alt+Shift+RIGHT
SelectNextBefore: Selects the next occurrence before the current selection.⌃⌥⇧LEFTCtrl+Alt+Shift+LEFT
SelectOrFindNext: Selects the next occurrence or finds the next occurrence of the last search term.⌃GAlt+K
SelectOrFindPrevious: Selects the previous occurrence or finds the previous occurrence of the last search term.⌃⇧GAlt+Shift+K
SelectAll: Selects the entire document.⌘ACtrl+A
SelectDown: Moves the selection down one line.⇧DOWN|CTRL⇧NShift+DOWN
SelectLeft: Moves the selection to the left.⇧LEFT|CTRL⇧BShift+LEFT
SelectRight: Moves the selection to the right.⇧RIGHTShift+RIGHT
SelectToEnd: Selects from the cursor to the end of the document or line.⌘⇧END|CMD⇧DOWNCtrl+Shift+END
SelectToLineEnd: Selects from the cursor to the end of the line.⌘⇧RIGHT|SHIFTEND|CTRL⇧EAlt+Shift+RIGHT
SelectToLineStart: Selects from the cursor to the start of the line.⌘⇧LEFT|CTRL⇧AAlt+Shift+LEFT
SelectToMatching: Selects from the cursor to the matching opening or closing character.⌃⌥PCtrl+Alt+P
SelectToStart: Selects from the cursor to the start of the document or line.⌘⇧HOME|CMD⇧UPCtrl+Shift+HOME
SelectUp: Moves the selection up one line.⇧UP|CTRL⌥PShift+UP
SelectWordLeft: Selects the word to the left of the cursor.⌥⇧LEFTCtrl+Shift+LEFT
SelectWordRight: Selects the word to the right of the cursor.⌥⇧RIGHTCtrl+Shift+RIGHT
ShowAutoCompleteWindow: Shows the complete window.⌘SPACECtrl+SPACE
SortLines: Sorts the selected lines or lines in the document.⌘⌥SCtrl+Alt+S
SplitIntoLines: Splits the selected text into multiple lines.⌃⌥LCtrl+Alt+L
SplitLine: Splits the current line at the cursor position.⌃O“
ToggleBlockComment: Toggles comment/uncomment for a block of code or selected lines.⌘⇧/Ctrl+Shift+/
ToggleFoldWidget: Toggles the folding of a code block or region.⌘⌥[Ctrl+Shift+[
ToggleParentFoldWidget: Toggles the folding of the parent code block or region.⌘⌥]Ctrl+Shift+]
ToggleComment: Toggles comment/uncomment for the current line or selected lines.⌘/Ctrl+/
ToLowerCase: Converts the selected text or text at the cursor to lowercase.⌃⇧UCtrl+Shift+U
ToUpperCase: Converts the selected text or text at the cursor to uppercase.⌃UCtrl+U
TransposeLetters: Transposes (swaps) the characters at the cursor with the characters to the right.⌃TAlt+Shift+X
Undo: Undoes the last action.⌘ZCtrl+Z
Unfold: Unfolds (reveals) a folded block of code or text.⌘⌥⇧L|CMD⇧F1Alt+Shift+L|CTRL+Shift+F1
UnfoldAll: Unfolds (reveals) all folded blocks of code or text in the document.⌘⌥⇧0Alt+Shift+0