- Ctrl+Enter (Cmd+Return on macOS) runs the statement under the cursor; Alt+X (Option+X) runs the whole script.
- Ctrl+Shift+F (Control+Shift+F on macOS) formats SQL, and Ctrl+Space (Control+Space) opens autocomplete.
- Ctrl+Shift+L (Shift+Cmd+L) lists every shortcut active in the current context, and Ctrl+3 (Cmd+3) finds any command by name.
- Change any binding in Window, Preferences, User Interface, Keys; DBeaver also offers a Keyboard Only key scheme with extra shortcuts.
How to use this DBeaver shortcuts sheet
These are the default DBeaver shortcuts. DBeaver is built on Eclipse, so a shortcut can depend on which part of the window has focus: the SQL editor, the results grid, the Connections view or a diagram. If a key does nothing, click into the right panel first.
To change a binding, open Window, Preferences, User Interface, Keys, select the command and enter a new key in Binding. On macOS some keys in the official list differ from what you might expect (for example Control+4 to commit), so check this page against Ctrl+Shift+L (Shift+Cmd+L), which shows the bindings active on your machine. Use the print button above for a paper copy.
Run SQL and work with results panels
| Action | Windows and Linux | macOS |
|---|---|---|
| Execute SQL statement (under cursor or selected) | Ctrl+Enter | Cmd+Return |
| Execute SQL script | Alt+X | Option+X |
| Execute SQL script natively | Alt+N | Option+N |
| Execute script statements in separate results tabs | Ctrl+Alt+Shift+X | Control+Option+Shift+X |
| Explain execution plan | Ctrl+Shift+E | Control+Shift+E |
| Select row count for query under cursor | Ctrl+Alt+Shift+C | Control+Option+Shift+C |
| Select and show all rows (no fetch size limit) | Ctrl+Alt+Shift+A | Control+Option+Shift+A |
| Switch to the next query | Alt+Down | Option+Down |
| Switch to the previous query | Alt+Up | Option+Up |
| Show or hide results panel | Ctrl+T | Control+T |
| Maximize or normalize results panel | Ctrl+Shift+T | Control+Shift+T |
| Close results tab | Ctrl+Shift+\ | Control+Shift+\ |
| Show server output console | Ctrl+Shift+O | Control+Shift+O |
| Load SQL script from file system | Ctrl+Alt+Shift+O | Control+Option+Shift+O |
Write and format SQL
| Action | Windows and Linux | macOS |
|---|---|---|
| Autocomplete | Ctrl+Space | Control+Space |
| Format SQL text | Ctrl+Shift+F | Control+Shift+F |
| Add or remove single-line comment | Ctrl+/ | Control+/ |
| Add or remove multi-line comment | Ctrl+Shift+/ | Control+Shift+/ |
| Change selection to uppercase | Ctrl+Shift+X | Shift+Cmd+X |
| Change selection to lowercase | Ctrl+Shift+Y | Shift+Cmd+Y |
| Jump to the matching bracket | Ctrl+Shift+[ | Control+Shift+[ |
| Delete a line | Ctrl+D | Cmd+D |
| Duplicate selected lines | Ctrl+Alt+Down | Option+Cmd+Down |
| Find and replace | Ctrl+F | Cmd+F |
| Undo | Ctrl+Z | Cmd+Z |
| Redo | Ctrl+Y | Shift+Cmd+Z |
| Rename current SQL script | Ctrl+F2 | Control+F2 |
| Trigger AI autocomplete (accept with Right, Tab or Enter) | Alt+Ctrl+Right | Option+Cmd+Right |
Connections, scripts and transactions
| Action | Windows and Linux | macOS |
|---|---|---|
| Open the Connect to a database window | Ctrl+Shift+N | Ctrl+Shift+N |
| Open object editor | F4 | F4 |
| Open database meta-object | Ctrl+Shift+D | Control+Shift+D |
| Open a new SQL console (no script file) | Ctrl+Alt+Enter | Control+Option+Return |
| Create a new SQL script | Ctrl+] | Control+] |
| Open existing SQL script | F3 | F3 |
| Select connection for current editor | Ctrl+9 | Control+9 |
| Select active schema for current database | Ctrl+0 | Control+0 |
| Commit changes in current session | Ctrl+Alt+Shift+K | Control+4 |
| Roll back changes in current session | Ctrl+Alt+Shift+R | Control+8 |
| Refresh the selected items | F5 | F5 |
| Rename the selected item | F2 | F2 |
| Add bookmark | Ctrl+Alt+Shift+D | Control+Option+Shift+D |
Results grid and data editor
| Action | Windows and Linux | macOS |
|---|---|---|
| Add new row | Alt+Insert | Option+Insert |
| Duplicate current row | Ctrl+Alt+Insert | Control+Option+Insert |
| Delete current row | Alt+Delete | Option+Forward Delete |
| Edit cell value inline | Enter | Return |
| Edit cell value in a separate editor | Shift+Enter | Shift+Return |
| Reset cell to original value | Esc | Esc |
| Apply data changes | Ctrl+S | Control+S |
| Reject data changes | Ctrl+R | Control+R |
| Fetch next page of results | Ctrl+Alt+N | Control+Option+N |
| Fetch all rows | Ctrl+Shift+= | Control+Shift+= |
| Toggle Grid and Record view | Tab | Tab |
| Toggle result panels | F7 | F7 |
| Toggle sort order (ascending, descending, default) | Ctrl+2 | Control+2 |
| Follow foreign key link | Alt+Space | Option+Space |
| Advanced copy | Ctrl+Shift+C | Control+Shift+C |
| Advanced paste | Ctrl+Shift+V | Control+Shift+V |
| Go to row | Ctrl+G | Not listed |
Diagrams, windows and navigation
ER diagrams
| Action | Windows and Linux | macOS |
|---|---|---|
| Navigate between tables | Arrows | Arrows |
| Select multiple tables | Shift+Arrows | Shift+Arrows |
| Select current table | Spacebar | Spacebar |
| Focus on attributes | Enter | Return |
| Open the selected table diagram | Ctrl+Shift+Enter | Control+Shift+Return |
| Print diagram | Ctrl+P | Cmd+P |
| Export diagram | Ctrl+O | Cmd+O |
Window and navigation
| Action | Windows and Linux | macOS |
|---|---|---|
| Find actions (quick access to any command) | Ctrl+3 | Cmd+3 |
| Show the key assist dialog (active shortcuts) | Ctrl+Shift+L | Shift+Cmd+L |
| Open the Search dialog | Ctrl+H | Control+H |
| Maximize or restore the active view or editor | Ctrl+M | Control+M |
| Switch to the next editor | Ctrl+F6 | Cmd+F6 |
| Open the editor drop-down list | Ctrl+E | Cmd+E |
| Close the active editor | Ctrl+F4 | Cmd+W |
| Close all editors | Ctrl+Shift+F4 | Shift+Cmd+W |
| Save changes in all open files | Ctrl+Shift+S | Shift+Cmd+S |
| Toggle full screen | Alt+F11 | Control+Cmd+F |
| Open the documentation | F1 | F1 |
Frequently asked questions
What is the shortcut to run a query in DBeaver?
Ctrl+Enter (Cmd+Return on macOS) executes the statement under the cursor or the selected text. Alt+X (Option+X) executes the whole script.
How do I format SQL in DBeaver?
Press Ctrl+Shift+F on Windows and Linux; DBeaver's list gives Control+Shift+F on macOS.
How do I see or change all DBeaver shortcuts?
Ctrl+Shift+L (Shift+Cmd+L) shows the key assist dialog. To change bindings, go to Window, Preferences, User Interface, Keys.
What is the DBeaver Keyboard Only key scheme?
An alternative key scheme, selected in the same Keys preferences page, that adds more shortcuts for people who mostly use the keyboard, for example Alt+Shift+H to hide columns in the results grid.
Is there a DBeaver shortcut for autocomplete?
Ctrl+Space (Control+Space on macOS) opens autocomplete in the SQL editor.
Sources
Checked 8 October 2026.
How we research tool guides: our editorial method. CodeWithSQL earns nothing from the vendors mentioned.