Mastering keyboard shortcuts and client directives is the fastest way to double your productivity when writing SQL, debugging procedural code, or managing complex database migrations in DBeaver. Bookmark this page as your quick desk reference.

1. SQL Execution Keybindings

Action Windows / Linux macOS Function Description
Execute Statement Ctrl + Enter Cmd + Enter Runs the query under cursor. Replaces active result grid.
Execute in New Tab Ctrl + \ Cmd + \ Runs query and outputs to a separate concurrent result tab.
Execute Entire Script Alt + X Option + X Runs the entire SQL file batch sequentially from top to bottom.
Execute to Cursor Alt + Shift + Enter Option + Shift + Enter Executes all queries from the cursor point to end of script.
Explain Plan Ctrl + Shift + E Cmd + Shift + E Generates visual tree execution plan without executing DML.
Cancel Query Ctrl + Alt + Shift + Q Cmd + Option + Shift + Q Cancels running database socket thread immediately.

2. Code Editor & Formatting Productivity

Action Windows / Linux macOS Description
Auto-Complete (IntelliSense) Ctrl + Space Option + Space Introspects tables, columns, schema objects, and SQL keywords.
Format SQL Script Ctrl + Shift + F Cmd + Shift + F Applies indentation, keyword casing, and line wrapping rules.
Toggle Line Comment Ctrl + / Cmd + / Comments or uncomments selected lines with --.
Toggle Block Comment Ctrl + Shift + / Cmd + Shift + / Wraps selection inside /* ... */ block.
Convert to Uppercase Ctrl + Shift + U Cmd + Shift + U Capitalizes selected keywords or identifiers.
Convert to Lowercase Ctrl + Shift + L Cmd + Shift + L Lowercases selected text.
Find & Replace (Regex) Ctrl + F Cmd + F Opens search bar supporting regular expression substitutions.
Object Information / DDL F4 F4 Opens schema metadata and DDL viewer for object under cursor.

3. Procedural Debugger Keybindings

Action Shortcut Operation Description
Toggle Breakpoint Ctrl + Shift + B Sets or clears a breakpoint on current procedure code line.
Step Into F5 Enters inside called function or sub-routine.
Step Over F6 Advances to next line without diving into nested routines.
Step Return F7 Runs remaining lines of current routine and returns to caller frame.
Resume Execution F8 Runs until next active breakpoint or end of procedure.
Terminate Session Ctrl + F2 Aborts remote debug thread and rolls back transaction.

4. Transaction & Connection Management

Action Shortcut Description
Commit Transaction Ctrl + Alt + Shift + C Writes all pending uncommitted DML changes to database.
Rollback Transaction Ctrl + Alt + Shift + Z Reverts pending changes back to last commit point.
Toggle Auto-Commit Ctrl + Alt + T Switches active connection between Auto-commit and Manual.
Reconnect Session Ctrl + Alt + R Invalidates current socket connection and reconnects cleanly.

5. DBeaver Client Script Directives

These commands execute directly inside the DBeaver client parser before queries are sent to the database:

DBeaver Client Commands
-- 1. Declare client-side substitution variable
@set active_status = 'PUBLISHED'
@set current_year = 2026

-- 2. Use variable anywhere in subsequent queries
SELECT * FROM articles 
WHERE status = '${active_status}' 
  AND release_year = ${current_year};

-- 3. Dynamic parameter prompt modal (:param)
SELECT * FROM accounts WHERE account_id = :target_id;

-- 4. Change statement delimiter for triggers and procedures
--delimiter //
-- or standard MySQL delimiter directive:
DELIMITER $$

-- 5. Include external modular SQL scripts
@include '../migrations/001_initial_schema.sql';

6. DBeaver Command-Line Interface (CLI) Arguments

You can automate script executions and launch predefined workspaces via the command line or CI/CD build scripts:

CLI Argument Example Usage Operation
-con dbeaver -con "name=LocalPG|driver=PostgreSQL|host=localhost|port=5432|db=app_db|user=postgres" Launches DBeaver and connects directly to specified connection string.
-f <file> dbeaver -f "C:\scripts\migration_v26.sql" Opens specific SQL script file inside the editor upon launch.
-data <dir> dbeaver -data "D:\workspaces\team_db_project" Specifies an alternate local workspace directory for settings, drivers, and projects.
-nl <lang> dbeaver -nl en Forces interface locale (e.g. English, German, French, Spanish).
-reset-ui dbeaver -reset-ui Resets corrupted panel perspectives and view layouts to factory defaults.

Ready to Start the Complete Course?

Explore our comprehensive curriculum of hands-on coding labs from beginner SQL to enterprise database architecture.