Last updated: 2026-09-25

Keyboard Shortcuts

Reference for query execution, navigation, editing, and results shortcuts on macOS, Windows, and Linux.

The shortcuts in the Global, Query Editor, Notebook, Visual Query Editor and foreign key breadcrumb tables can be changed in Settings → Keyboard Shortcuts; see Customising shortcuts. To use the keys of SSMS, Azure Data Studio, DataGrip, DBeaver or the VS Code mssql extension, pick that tool’s shortcut scheme.

Tip: Print this page or bookmark it for quick reference while learning Jam SQL Studio.

Global Shortcuts

These shortcuts work throughout the application, regardless of which panel has focus.

ActionmacOSWindows/Linux
New QueryCmd+NCtrl+N
New NotebookCmd+Shift+NCtrl+Shift+N
Open SQL FileCmd+OCtrl+O
Open Data ImportCmd+ICtrl+I
Close TabCmd+WCtrl+W
Toggle TerminalCtrl+`Ctrl+`
Toggle SidebarCmd+B or Ctrl+BCtrl+B
Expand ExplorerCmd+Shift+E or Ctrl+Shift+ECtrl+Shift+E
Expand ScriptsCtrl+Shift+SCtrl+Shift+S
Go to Start PageCmd+Shift+H or Ctrl+Shift+HCtrl+Shift+H
Command PaletteCmd+Shift+PCtrl+Shift+P
Search Query HistoryCmd+Shift+YCtrl+Shift+Y
Toggle Visual viewCmd+Shift+VCtrl+Shift+V
SettingsCmd+,Ctrl+,
AI Integrations SettingsCtrl+Shift+ACtrl+Shift+A
Go to tab 1–9 (9 = last tab)Cmd+1…Cmd+9Ctrl+1…Ctrl+9

You can change these shortcuts in Settings → Keyboard Shortcuts.

Terminal focus: when the embedded terminal has focus, its shell keeps Ctrl+N, Ctrl+O, and other terminal input. On macOS, Cmd shortcuts still work while the terminal has focus; only Ctrl combinations are left to the shell. Click the app toolbar or workspace before using the matching Jam SQL shortcut.

Tab Strip Keyboard Navigation

The workspace tab strip is a single keyboard stop: only the active tab is in the Tab order, so pressing Tab moves on to the next toolbar/panel instead of walking every open tab.

  • Arrow Left / Right — move focus between tabs (does not activate them); focus wraps from the last tab back to the first
  • Enter or Space — activate the focused tab
  • Shift+F10 (or the Menu key) — open the focused tab's right-click menu from the keyboard
  • Middle-click — close a tab without switching to it first
  • The close button becomes visible once a tab has keyboard focus, not only on mouse hover

Command Palette

The Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux) gives you fuzzy-searchable access to every command, database object, saved connection, and setting from a single keyboard-driven interface.

What You Can Do

  • Run workspace commands — open a New Query, Table Explorer, Schema Compare, Data Compare, start a cross-engine migration (Migrate Database/Table to Connection), and more
  • Search database objects — find tables, views, stored procedures, and functions by name, then drill down into contextual actions (Select Top, Script CREATE, Design Table, etc.)
  • Quick-connect — search saved connections and connect with a single Enter
  • Toggle settings — switch dark mode, open specific settings sections, toggle sidebar or terminal
  • Navigate — go to Home, open Tab History, expand Explorer or Scripts panel

Tips

  • Each command shows its keyboard shortcut badge, so the palette doubles as a shortcut reference.
  • Use Shift+Enter on a command that needs a connection to force the connection/database selector dialog instead of using the explorer's current selection.
  • Press Backspace on an empty search to return from an object's action sub-menu to the main search.
  • The palette is also accessible from the search trigger on the Start Page and the toolbar search button.

Query Editor Shortcuts

Shortcuts for writing and executing SQL queries in the query editor. The Execution, View, IntelliSense and Transactions shortcuts, and Save, Save As and Format SQL under Editing, can be changed in Settings → Keyboard Shortcuts; the other editing shortcuts are fixed.

Execution

ActionmacOSWindows/Linux
Execute QueryF5F5
Execute SelectionF5, Cmd+Enter or Shift+EnterF5, Ctrl+Enter or Shift+Enter
Execute Current StatementCmd+Enter or Shift+EnterCtrl+Enter or Shift+Enter
Execute Full Editor Content (ignore selection)Shift+F5Shift+F5

With the cursor on an empty line between or after statements, Cmd/Ctrl+Enter and Shift+Enter run the statement above the cursor, while F5 runs the entire editor content. Above the first statement they run nothing and the status bar shows “No statement at cursor.”

F5 can run the active Query Editor while focus is on application controls such as the main toolbar or Object Explorer. Cmd/Ctrl+Enter and Shift+Enter remain scoped to the Query Editor surface and do not run from those controls.

While a Query tab shows its Visual view, F5 and Cmd/Ctrl+Enter run the statement shown there (the toolbar’s Execute reads Statement), and Shift+F5 still runs the whole script.

Editor key costs: Cmd/Ctrl+Enter runs the current statement instead of Monaco's Insert Line Below command. Shift+Enter runs the current statement instead of inserting a newline or accepting an alternative suggestion. Use plain Enter to insert a newline.

Shortcuts owned by the main Jam SQL window do not receive key events from the AWR report iframe. Click outside the report before using one of these shortcuts.

View

ActionmacOSWindows/Linux
Toggle Results PaneCmd+JCtrl+J

IntelliSense

ActionmacOSWindows/Linux
Refresh IntelliSense (re-read the schema behind autocomplete for the tab's connection and database)Cmd+Shift+RCtrl+Shift+R

Transactions

ActionmacOSWindows/Linux
Commit transactionCmd+Shift+CCtrl+Shift+C
Rollback transactionCmd+Shift+XCtrl+Shift+X

Editing

ActionmacOSWindows/Linux
Save queryCmd+SCtrl+S
Save query asCmd+Shift+SCtrl+Shift+S
Format SQLShift+Alt+FShift+Alt+F
Comment LineCmd+/Ctrl+/
Block CommentShift+Alt+AShift+Alt+A
FindCmd+FCtrl+F
Find and ReplaceCmd+Alt+FCtrl+H
Find NextCmd+GF3
Find PreviousCmd+Shift+GShift+F3
UndoCmd+ZCtrl+Z
RedoCmd+Shift+ZCtrl+Y
Select AllCmd+ACtrl+A
Duplicate LineShift+Alt+DownShift+Alt+Down
Delete LineCmd+Shift+KCtrl+Shift+K
Move Line UpAlt+UpAlt+Up
Move Line DownAlt+DownAlt+Down
Indent LineTabTab
Outdent LineShift+TabShift+Tab
Trigger Parameter HintsCmd+Shift+SpaceCtrl+Shift+Space

Cursor and Selection

ActionmacOSWindows/Linux
Multi-cursor (Add)Alt+ClickAlt+Click
Add Cursor AboveCmd+Alt+UpCtrl+Alt+Up
Add Cursor BelowCmd+Alt+DownCtrl+Alt+Down
Select WordCmd+DCtrl+D
Select All OccurrencesCmd+Shift+LCtrl+Shift+L
Expand SelectionCtrl+Shift+Cmd+RightShift+Alt+Right
Shrink SelectionCtrl+Shift+Cmd+LeftShift+Alt+Left
Go to LineCtrl+GCtrl+G
Go to BeginningCmd+HomeCtrl+Home
Go to EndCmd+EndCtrl+End

Notebook Shortcuts

Shortcuts for saving the active notebook.

ActionmacOSWindows/Linux
Save notebookCmd+SCtrl+S
Save notebook asCmd+Shift+SCtrl+Shift+S

You can change these shortcuts, and Run cell, Run cell and advance and Run cell and insert below, in Settings → Keyboard Shortcuts.

Dashboards Shortcuts

Shortcuts for the SQL Dashboards grid. Focus a tile first (click it or Tab to it).

ActionmacOSWindows/Linux
Move focused tileArrow keysArrow keys
Resize focused tileShift+Arrow keysShift+Arrow keys
Exit present modeEscapeEscape

Visual Query Editor Shortcuts

Shortcuts for the Visual Query Editor (VQE) — the structural, no-SQL-typing view of the active statement. See Visual Query Editor for the full feature guide.

ActionmacOSWindows/Linux
Toggle Visual viewCmd+Shift+VCtrl+Shift+V
Open Keyboard-Shortcut Help??
Move Focus (Next / Previous Control)Tab / Shift+TabTab / Shift+Tab
Activate Control / Open Statement PickerEnterEnter
Apply Filter or Value EditEnterEnter
Cancel Editor / Close PopoverEscapeEscape
Pick Up / Drop Chip to Reorder (SELECT, GROUP BY)Space or EnterSpace or Enter
Move Picked-Up ChipArrow keysArrow keys
Cancel ReorderEscapeEscape
Undo Last EditCmd+ZCtrl+Z
Redo Last EditCmd+Shift+ZCtrl+Shift+Z
Move Between Statements in PickerArrow keysArrow keys
Execute Active StatementCmd+EnterCtrl+Enter

In a Query tab’s Visual view, Undo and Redo step through the Query Editor’s own history, so typed and visual edits undo in one order.

Toggle Visual view and Execute Active Statement can be changed in Settings → Keyboard Shortcuts; the other Visual Query Editor keys are fixed.

Visual DDL Editor Shortcuts

Shortcuts for the Compact DDL editor popover (opened from the pencil affordance in the Query Editor) and the buffer-backed Table Designer. See Table Designer and Query Editor → Compact DDL Editor for full feature docs.

ActionmacOSWindows/Linux
Dismiss PopoverEscapeEscape
Undo Visual EditCmd+ZCtrl+Z

Navigate between tabs, panels, and views — plus jump to a SQL identifier's definition, find its references, or rename it from the editor cursor. See Query Editor → Go to Definition, Find References, and Rename for the full feature breakdown.

ActionmacOSWindows/Linux
Focus Object ExplorerCtrl+Shift+ECtrl+Shift+E
Toggle Full ScreenCtrl+Cmd+FF11
Zoom InCmd+=Ctrl+=
Zoom OutCmd+-Ctrl+-
Reset ZoomCmd+0Ctrl+0
Go to DefinitionF12F12
Go to Definition (Click)Cmd+ClickCtrl+Click
Peek References (inline panel)Shift+F12Shift+F12
Rename SymbolF2F2
Quick Fix (code actions at the cursor)Cmd+.Ctrl+.

Results Grid Shortcuts

Shortcuts for working with query results and table data.

ActionmacOSWindows/Linux
Copy SelectionCmd+CCtrl+C
Select RowClick row numberClick row number
Extend SelectionShift+ClickShift+Click
Multi-select RowsCmd+ClickCtrl+Click
Navigate CellsArrow keysArrow keys
Page DownPage DownPage Down
Page UpPage UpPage Up
Go to First RowCmd+HomeCtrl+Home
Go to Last RowCmd+EndCtrl+End

Table Explorer Shortcuts

Shortcuts for browsing and editing table data in Table Explorer.

ActionmacOSWindows/Linux
Discard ChangesEscapeEscape

Azure Storage Browser Shortcuts

Shortcuts for the storage browser tab on an Azure Storage connection. They apply to blob containers and to file shares, share folders and share snapshots alike.

ActionmacOSWindows/Linux
Open the selected folderEnterEnter
Go up one levelBackspaceBackspace
Copy the selectionCmd+CCtrl+C
Copy names onlyCmd+Shift+CCtrl+Shift+C
Select every loaded rowCmd+ACtrl+A
Focus the prefix filterCmd+FCtrl+F
Delete selected blobs or folders (opens confirmation; disabled on read-only connections)DeleteDelete

Walk the FK navigation tree inside a Table Explorer tab without taking your hands off the keyboard.

ActionmacOSWindows/Linux
Activate previous sibling (or previous in the active path)Cmd+←Ctrl+←
Activate next sibling (or next in the active path)Cmd+→Ctrl+→
Activate parentCmd+↑Ctrl+↑
Activate first childCmd+↓Ctrl+↓

All four shortcuts can be changed in Settings → Keyboard Shortcuts.

Object Explorer Shortcuts

Shortcuts for navigating and interacting with database objects.

ActionmacOSWindows/Linux
Expand NodeRight ArrowRight Arrow
Collapse NodeLeft ArrowLeft Arrow
Navigate Up/DownUp/Down ArrowUp/Down Arrow
Open ObjectEnterEnter
Context MenuRight-click or Ctrl+ClickRight-click or Shift+F10

Snippets

Shortcuts for using code snippets.

ActionmacOSWindows/Linux
Expand SnippetTabTab
Next PlaceholderTabTab
Previous PlaceholderShift+TabShift+Tab
Exit Snippet ModeEscapeEscape

Schema Overview Shortcuts

Shortcuts for navigating the schema visualization.

ActionmacOSWindows/Linux
Zoom InScroll UpScroll Up
Zoom OutScroll DownScroll Down
PanClick + DragClick + Drag
Select NodeClickClick
Open Selected ObjectDouble-clickDouble-click

Customising shortcuts

Open Settings → Keyboard Shortcuts to change a shortcut. The tab lists every command you can rebind, grouped by where it works (Query Editor, notebooks, Visual Query Editor, PL/SQL editor and debugger, foreign key breadcrumb, global). Each row shows the current shortcuts, a badge — Default, Scheme default when the selected scheme sets the row, or Customised — and a Reset button once you have changed it. The search box filters by action name or by key, for example ctrl+j.

Recording a shortcut

  • Click a shortcut and press the new keys. Esc cancels. Backspace removes that shortcut and its keys go back to the editor or the text field, so Shift+Enter inserts a newline again once it is removed from Execute Current Statement. If it was the command's only shortcut, the command is left without one.
  • Click + to give a command a second shortcut. Both run it. A command without a shortcut shows Not bound; click it to record one.
  • A shortcut needs Ctrl, Cmd or Alt, or a function key. Plain keys and Shift plus a character key are refused because they type text; Shift+Enter and Shift+F5 are fine.
  • Keys that belong to the operating system or to the app menu’s built-in items, such as Cmd+Q, Cmd/Ctrl+C, Cmd/Ctrl+V, Cmd/Ctrl+Z and Alt+F4, are refused, and the tab says why. Pressing them while recording does not quit or copy anything. Cmd/Ctrl+W is Close Tab and can be changed; pressing it while recording does not close a tab.
  • On macOS, Option (⌥) combinations also type characters in text fields, so a shortcut like Option+X only applies inside its own area of the app.
  • Keys are recorded by the character your keyboard layout puts on them. While the app is still reading the layout, the recorder shows Loading keyboard layout…. A key the layout cannot name is recorded by its position and shown with its label, for example Ctrl+ö [Semicolon]. While a layout whose letters are not Latin, such as Russian or Greek, is active, a shortcut such as Ctrl+S works from the key that types S on a US keyboard. Layouts with Latin letters, such as German or French, are not changed this way: a key like ö or é runs only a shortcut recorded on that key.
  • Cmd on macOS and Ctrl on Windows and Linux are saved as the same key, so an exported shortcut works on the other platform.

Conflicts

  • If another command in the same area already uses the keys, the shortcut moves to the command you changed and the other command loses it. A note at the top of the tab says what moved and offers Undo.
  • A command that works in one area, such as the Query Editor, can share a shortcut with a global command. Both rows show a warning: the Query Editor command runs while a Query Editor tab is active, and the global command runs everywhere else.
  • A row shows a warning when a shortcut you recorded replaces one of the SQL editor’s own shortcuts while the editor has focus (for example Cmd/Ctrl+F, which would no longer open Find there). The shortcuts Jam SQL ships with do not repeat this warning; their editor costs are listed under Query Editor Shortcuts. Other warnings, such as a shortcut that works in the terminal being a common shell key, show on every row.
  • A conflict that exists only on this platform, for example a Ctrl+Enter shortcut imported from a Mac, where Control and Command are different keys, is shown under the affected shortcut rather than at the top, and the shortcut stays saved.
  • A shortcut that lost a conflict is crossed out. When it lost to another command’s shortcut, record the same keys again on it to make it win; the other command then loses them, with Undo at the top. A shortcut crossed out because of your keyboard layout, one the platform reserves, or one that is the same keys as another shortcut of the same command cannot win that way — choose different keys.

Reset, persistence and transfer

  • Reset on a row returns that command to the selected scheme’s default. Reset all to scheme defaults resets every command and keeps the scheme. If a reset takes a shortcut back from another command, the note at the top says so.
  • Changes are saved at once and kept after a restart. Toolbar tooltips, the Command Palette and the app menu show the new keys.
  • Settings → Backup & Transfer includes your shortcuts in a settings export. Importing replaces the shortcuts on the other machine; a conflict found during the import that moved a shortcut is listed at the top of the tab, without Undo, and a conflict that exists only on this platform or keyboard layout, or a default shortcut that one of the imported shortcuts uses, is shown under the affected shortcut. A shortcut the other platform reserves, such as F11 for full screen on Windows and Linux, stays saved but does nothing there.
  • Shortcuts saved by a newer version of Jam SQL for commands this version does not have are listed at the top of the tab with a Remove button.

Shortcut schemes

The Scheme picker at the top of the tab switches the defaults to another tool’s keys. Jam SQL (default) uses the shortcuts listed on this page. The other schemes change only the commands in the table below; every other command keeps its Jam SQL shortcut, and a row a scheme sets shows the Scheme default badge.

  • Switching schemes keeps your own shortcuts. A scheme shortcut that clashes with one of yours is inactive while that scheme is active: it is crossed out with a note under its row, and nothing about that command is saved, so it gets its keys back when you switch to a scheme without the clash or change your own shortcut. If that command’s shortcuts change, its crossed-out shortcut is not kept; Reset brings the scheme’s shortcuts back and takes them from any other command that uses them, except a conflict caused by your keyboard layout, which needs different keys.
  • Reset returns a row to the scheme’s shortcut, and Reset all to scheme defaults keeps the scheme.
  • The scheme is saved with your shortcuts and included in a settings export.
SchemeCommandWindows / LinuxmacOS
SSMS / Azure Data StudioExecuteF5 (Jam SQL default)F5 (Jam SQL default)
Cancel queryAlt+Pause (Alt+Break)No macOS key (Mac keyboards have no Pause key)
Toggle results paneCtrl+RCmd+J (Jam SQL default)
JetBrains DataGripExecute current statementCtrl+Enter (Jam SQL default)Cmd+Enter (Jam SQL default)
Cancel queryCtrl+F2Cmd+F2
Format SQLCtrl+Alt+LCmd+Option+L
DBeaverExecute current statementCtrl+Enter (Jam SQL default)Cmd+Enter (Jam SQL default)
Execute whole bufferAlt+XOption+X
Toggle results paneCtrl+TControl+T
Format SQLCtrl+Shift+FControl+Shift+F
VS Code mssql extensionExecuteCtrl+Shift+ECmd+Shift+E

Cmd/Ctrl+Enter and Shift+Enter run the statement under the cursor in every scheme; that is also what Cmd/Ctrl+Enter does in DataGrip and DBeaver. F5 runs the query in every scheme except the VS Code mssql extension, where Cmd/Ctrl+Shift+E replaces it. With DBeaver, Alt+X replaces Shift+F5. With the VS Code mssql extension scheme, Cmd/Ctrl+Shift+E runs the query whenever a Query Editor tab is active, also while focus is in the Object Explorer or the results grid, and, as Execute does, runs the statement under the cursor in a multi-statement buffer rather than the whole document; outside Query Editor tabs the key keeps expanding the Explorer, and both rows show a note about it. Microsoft documents no macOS key for the SSMS results pane, so macOS keeps Cmd+J there. On many Linux desktops Ctrl+Alt+L, DataGrip’s Format SQL key, is the lock-screen shortcut, so the desktop may take it before Jam SQL sees it. On Windows keyboard layouts that have an AltGr key, such as German, Polish or French, Ctrl+Alt acts as AltGr, so Ctrl+Alt+L does not work as a shortcut there; record a different Format SQL key.

Sources, checked on 2026-09-23: SSMS keyboard shortcuts and the MSSQL extension and MSSQL Database Management Keymap shortcuts (Microsoft Learn); the DataGrip keyboard shortcuts, Run queries and Reformat code pages; the DBeaver shortcuts page.

What cannot be changed

The SQL editor’s editing shortcuts (comment, find, multi-cursor, move line), Notebook command-mode letters, Cmd/Ctrl+C and Escape in the results grids, the Azure Storage browser keys, the arrow keys in the tab strip, and the app menu’s built-in items such as Copy, Paste, Undo, Minimize and Quit keep their shortcuts.

Print-friendly: Use Cmd+P (macOS) or Ctrl+P (Windows/Linux) to print this page for a quick reference card.

Frequently asked questions

What is the keyboard shortcut to execute a SQL query?

Press F5 to execute your query. It runs the narrowest available scope — a runnable selection if present, else the statement under the cursor, else the full editor content. Cmd/Ctrl+Enter and Shift+Enter run the selection or the current statement without a completeness check; with the cursor on an empty line they run the statement above it, never the whole editor content. Shift+F5 always runs the entire editor content.

How do I format SQL code in Jam SQL Studio?

Press Shift+Alt+F to format your SQL code. This works on both macOS and Windows/Linux.

How do I open a new query tab?

Press Cmd/Ctrl+N to open a new query tab. Press Cmd/Ctrl+W to close the active tab, or use its close (×) button.

How do I change a keyboard shortcut in Jam SQL Studio?

Open Settings → Keyboard Shortcuts, click the shortcut and press the new keys. Esc cancels and Backspace removes the shortcut. The + button adds a second shortcut, and Reset returns a command to its default. If another command in the same area already uses the keys, it loses them and a note at the top of the tab offers Undo.

Can I use SSMS, DataGrip, DBeaver or VS Code shortcuts in Jam SQL Studio?

Yes. In Settings → Keyboard Shortcuts, pick a scheme: SSMS / Azure Data Studio, JetBrains DataGrip, DBeaver or VS Code mssql extension. The scheme switches the shortcuts for executing, cancelling, formatting and showing the results pane to that tool’s keys, and keeps any shortcut you changed yourself. See Shortcut schemes for the keys each scheme uses.

What is the shortcut to view an execution plan?

Use the Plan dropdown in the query toolbar: Execute with Actual Plan runs the query and captures the real plan, and Estimated Plan captures the plan without executing. There is no dedicated keyboard shortcut.

How do I cancel a running query?

Click the Stop button in the toolbar while a query is running. Jam SQL Studio requests cancellation, and the button changes to Stopping… — click it again to force the stop. A statement already waiting on the server may run until its wait ends: on Oracle the forced stop drops the connection so the query returns at once, but the database session finishes what it had already started.

How do I open the Command Palette in Jam SQL Studio?

Press Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux to open the Command Palette. You can also click the search trigger on the Start Page or the toolbar search button. The palette lets you fuzzy-search every command, database object, saved connection, and setting. Select a database object to drill down into contextual actions like Select Top, Script CREATE, or Design Table.

Ready to Get Started?

Download Jam SQL Studio and put these shortcuts to use.