Skip to content
Cheat sheet · DataGrip

DataGrip Keyboard Shortcuts Cheat Sheet

A printable list of the DataGrip shortcuts that matter for database work, grouped by task, with the default Windows and macOS keymaps side by side. Every shortcut comes from JetBrains' DataGrip documentation for the default keymaps; if you have changed your keymap, Settings | Keymap is the final word.

Steps and facts checked 8 October 2026 against the vendor's official documentation. Versions covered: DataGrip 2026.2, default Windows and macOS keymaps. Next review due April 2027. Menus, shortcuts and prices change between releases; check the vendor's documentation for your version.
Short answer
  • The five to learn first: Ctrl+Enter (run), F4 (open data or source), Ctrl+Shift+F10 (query console), Ctrl+Alt+Shift+S (data source settings) and double Shift (Search Everywhere). On macOS, Cmd replaces Ctrl for most of them.
  • In a data editor, Ctrl+Enter submits your edits; Ctrl+Alt+Shift+Enter submits and commits in manual transaction mode.
  • Shortcuts are for the default Windows and macOS keymaps. On Linux, check which keymap DataGrip selected in Settings | Keymap.
  • Find Action (Ctrl+Shift+A, Cmd+Shift+A on macOS) finds any command by name and shows its current shortcut.
How we know: Research-based: every shortcut was taken from the DataGrip documentation for the default Windows and macOS keymaps on 8 October 2026. We have not pressed these keys for this page. Some shortcuts depend on context (query console, data editor or Database Explorer), as noted in each table.

How to read these DataGrip shortcuts

These DataGrip shortcuts use the default keymaps that JetBrains documents: Windows and macOS. On macOS, Option is the Alt key. JetBrains publishes predefined keymap references for Windows and macOS only. On Linux, DataGrip suggests a keymap based on your environment, and GNOME and KDE keymaps are available as plugins, so confirm yours under Settings | Keymap.

All default shortcuts can be changed, and JetBrains warns that with a non-English keyboard layout some shortcuts may not be detected correctly. A PDF reference card for the default keymap is also available in DataGrip under Help | Keyboard Shortcuts PDF.

Run SQL and work with query consoles

Running queries and query consoles
ActionWindowsmacOS
Execute statement (in a query console)Ctrl+EnterCmd+Enter
Cancel a running statementCtrl+F2Cmd+F2
Open a query console for the selected data sourceCtrl+Shift+F10Cmd+Shift+F10
New query console for the selected data sourceCtrl+Shift+QCmd+Shift+L
Browse query historyCtrl+Alt+ECmd+Option+E
Jump to source or edit data (opens a console on a data source)F4Cmd+Down
Recent files and consolesCtrl+ECmd+E
Find Action (any command by name)Ctrl+Shift+ACmd+Shift+A

Data editor and query results

Data editor and result sets
ActionWindowsmacOS
Submit changes to the databaseCtrl+EnterCmd+Enter
Submit and commit (manual transaction mode)Ctrl+Alt+Shift+EnterCmd+Option+Shift+Enter
Open the cell in the value editorShift+EnterShift+Enter
Edit the cellEnterEnter
Set cell to NULLCtrl+Alt+NCmd+Option+N
Set cell to DEFAULTCtrl+Alt+DCmd+Option+D
Next page of resultsCtrl+Alt+DownCmd+Option+Down
Previous page of resultsCtrl+Alt+UpCmd+Option+Up
Reload pageCtrl+F5Cmd+R
Column listCtrl+F12Cmd+F12
Copy aggregation result (SUM by default)Ctrl+Shift+CCmd+Shift+C
Copy selectionCtrl+CCmd+C
Full-text search in a databaseCtrl+Alt+Shift+FCmd+Option+Shift+F

Database Explorer and database objects

Database Explorer actions
ActionWindowsmacOS
Data source properties (Data Sources and Drivers dialog)Ctrl+Alt+Shift+SCmd+;
Refresh the selected elementCtrl+F5Cmd+R
Force refresh (clear cached metadata and reload)Ctrl+Shift+F5Cmd+Option+Shift+R
SQL Generator (DDL for an object)Ctrl+Alt+GCmd+Option+G
Generate DDL to clipboardCtrl+Alt+Shift+GCmd+Option+Shift+G
Generate DDL to query consoleCtrl+Alt+Shift+BCmd+Option+Shift+B
Go to DDL of the object at the caretCtrl+BCmd+B
Modify object (opens the Modify dialog)Ctrl+F6Cmd+F6
Select the object in the Database ExplorerAlt+Shift+BOption+Shift+B
Compare schema structure of two objectsCtrl+DCmd+D
Show diagram in an editor tabCtrl+Alt+Shift+UCmd+Option+Shift+U
Show diagram in a popupCtrl+Alt+UCmd+Option+U
New object (table, schema, routine and so on)Alt+InsertCmd+N
RenameShift+F6Shift+F6
Copy reference (qualified name)Ctrl+Alt+Shift+CCmd+Option+Shift+C

Editing SQL

On Windows, the first time you press Ctrl+Y DataGrip asks whether it should delete the line or redo; you can change the choice later in Settings | Keymap.

SQL editor
ActionWindowsmacOS
Basic completionCtrl+SpaceCtrl+Space
Show context actions and quick-fixesAlt+EnterOption+Enter
Reformat codeCtrl+Alt+LCmd+Option+L
Comment or uncomment lineCtrl+/Cmd+/
Block commentCtrl+Shift+/Cmd+Option+/
Duplicate line or selectionCtrl+DCmd+D
Delete lineCtrl+YCmd+Backspace
Extend selectionCtrl+WOption+Up
Shrink selectionCtrl+Shift+WOption+Down
Move line up / downAlt+Shift+Up / DownOption+Shift+Up / Down
Add selection for next occurrenceAlt+JCtrl+G
Select all occurrencesCtrl+Alt+Shift+JCmd+Ctrl+G
Quick documentationCtrl+QF1
Parameter infoCtrl+PCmd+P
Undo / redoCtrl+Z / Ctrl+Shift+ZCmd+Z / Cmd+Shift+Z
Search, navigation and tool windows
ActionWindowsmacOS
Search EverywhereDouble ShiftDouble Shift
Find in the current fileCtrl+FCmd+F
ReplaceCtrl+RCmd+R
Find in filesCtrl+Shift+FCmd+Shift+F
Go to lineCtrl+GCmd+L
Find usagesAlt+F7Option+F7
Next / previous highlighted errorF2 / Shift+F2F2 / Shift+F2
Back / forwardCtrl+Alt+Left / RightCmd+[ / Cmd+]
SettingsCtrl+Alt+SCmd+,
Database Explorer tool windowNo default shortcutCmd+1
Files tool windowAlt+2Cmd+2
Services tool window (query results)Alt+8Cmd+8
Hide all tool windowsCtrl+Shift+F12Cmd+Shift+F12

Frequently asked questions

What is the shortcut to run a query in DataGrip?

Ctrl+Enter on Windows and Cmd+Enter on macOS. If several statements are present, DataGrip asks which one to run and always offers an option to run them all. Ctrl+F2 (Cmd+F2) cancels a running statement.

How do I open a new query console in DataGrip?

Select a data source and press Ctrl+Shift+F10 (Cmd+Shift+F10 on macOS) and choose New Query Console, or press Ctrl+Shift+Q on Windows.

How do I change a DataGrip shortcut?

Open Settings | Keymap (Ctrl+Alt+S, Cmd+, on macOS). You can also press Alt+Enter on an action in the Find Action list to add or change its shortcut.

Is there a printable DataGrip shortcuts PDF?

Yes. JetBrains provides a default keymap reference card, available in DataGrip under Help | Keyboard Shortcuts PDF. This page also has a print button.

Can I use shortcuts from another editor in DataGrip?

DataGrip can switch to keymaps that match other editors, such as Eclipse or NetBeans, and more keymaps are available as plugins. Choose one in Settings | Keymap.

Sources

Checked 8 October 2026.

How we research tool guides: our editorial method. CodeWithSQL earns nothing from the vendors mentioned.

Still choosing a SQL client?

Read the full reviews, or compare tools side by side.