DataGrip is the database IDE from JetBrains, built for developers and data engineers who write SQL every day. It connects to PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB and many more, and it puts the query console, the database explorer, the data editor and the code editor in one window. Almost every action in DataGrip has a keyboard shortcut, from running a single statement to jumping straight to a table's data, and learning them is the fastest way to stop reaching for the mouse while you work with databases.
This complete list explains every shortcut in plain words, so you know not just which keys to press but what each one actually does. Every shortcut here was checked against JetBrains' own published shortcut reference. One note first: DataGrip uses the same default keymap as the other JetBrains IDEs, so developers coming from IntelliJ IDEA, PyCharm or WebStorm will find most shortcuts familiar, but the database actions are DataGrip's own. This post uses the default keymap on Windows and Linux, and the default macOS keymap on a Mac. The current release is DataGrip 2026.3, released in November 2026.
How to Use DataGrip Shortcuts
Start with the five keys that save the most time: Ctrl plus Enter to run the statement at the caret, Double Shift for Search Everywhere, Ctrl plus Shift plus A for Find Action, Alt plus Enter for intention actions, and Ctrl plus E for recent files and consoles. Use those five for a week, then add Ctrl plus Shift plus F to find in files, Alt plus F7 to find usages, and Shift plus F6 to rename a database object. Second, remember that Ctrl plus Enter does two jobs: in a query console it runs the SQL statement, and in the data editor it submits the changes you made to a row. Third, F4 is the database navigation key: in the data editor it jumps to the related data for a foreign key, and in the database explorer it jumps to a table's data.
DataGrip's Top Keyboard Shortcuts
The shortcuts JetBrains itself lists as the most useful to learn first.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Double Shift | Double Shift | Search Everywhere: search files, actions and settings |
| Ctrl + Shift + A | Command + Shift + A | Find Action: find any command by name |
| Alt + 4 | Command + 4 | Show Files window: show the Files tool window |
| Ctrl + E | Command + E | Recent Files: show recently opened files and consoles |
| Alt + F7 | Option + F7 | Find Usages: find all uses of a database object |
| Alt + Insert | Command + N | Generate: generate SQL code for tables and objects |
| Double Ctrl | Double Control | Run Anything: run a command, console or configuration |
| Alt + Shift + F9 | Control + Option + D | Debug: start debugging a configuration |
| Alt + ` | Control + V | VCS Operations Popup: open the version control menu |
| Ctrl + Alt + L | Command + Option + L | Reformat Code: reformat the SQL to code style |
Run SQL and Work with Databases
These are the shortcuts that make DataGrip a database IDE rather than a plain text editor. Ctrl plus Enter runs the statement under the caret, and F4 follows a foreign key to the related row.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Enter | Command + Enter | Execute Statement: run the SQL statement at the caret |
| Ctrl + Alt + G | Command + Option + G | Generate SQL for Object: generate SQL for the selected object |
| Shift + Ctrl + Alt + F | Shift + Command + Option + F | Full-Text Search in Database: search text across the database |
| Alt + 8 | Command + 8 | Show Database Output window: show where query results appear |
| F4 | F4 | Jump to Table's Data: open the data of the selected table |
| Ctrl + B | Command + B | Jump to DDL: go to the definition of the object |
| Ctrl + F6 | Command + F6 | Modify Object: open the modify dialog for the object |
| F4 | F4 | Go to Related Data: follow a foreign key to the related row |
| Alt + F7 | Option + F7 | Go to Referencing Data: find rows that reference this row |
Data Editor Shortcuts
The data editor is the grid where you view and edit table rows. Edit a cell, then press Ctrl plus Enter to submit the change, or Ctrl plus Alt plus Z to revert it.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Enter | Control + Enter | Submit Changes: save the edited rows to the database |
| Ctrl + Alt + Z | Control + Option + Z | Revert Changes: undo the edits in the data editor |
| Ctrl + Space | Control + Space | Value Completion: suggest values for the cell |
| Ctrl + Q | Control + Q | Quick Cell/Row View: preview the cell or row value |
| Shift + Enter | Shift + Enter | Maximize Cell View: open the cell value in a large view |
| Ctrl + F12 | Control + F12 | Column List: list the columns of the table |
| Shift + Space | Shift + Space | Select Row: select the whole current row |
Basic Editing Shortcuts
Basic editing covers cut, copy, paste, save, undo and line operations.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + X | Command + X | Cut: cut the selection |
| Ctrl + C | Command + C | Copy: copy the selection |
| Ctrl + V | Command + V | Paste: paste from the clipboard |
| Ctrl + S | Command + S | Save All: save all open files |
| Ctrl + Z | Command + Z | Undo: undo the last change |
| Ctrl + Shift + Z | Command + Shift + Z | Redo: redo a change you undid |
| Shift + Enter | Shift + Enter | Start New Line: start a new line below |
| Ctrl + Alt + Enter | Command + Option + Enter | Start New Line Before Current: start a new line above |
| Ctrl + Y | Command + Backspace | Delete Line: delete the whole current line |
| Ctrl + D | Command + D | Duplicate Line or Selection: duplicate the line or selection |
Caret Navigation Shortcuts
Caret shortcuts move the cursor without the mouse.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Left | Option + Left | Move Caret to Previous Word: move the caret one word left |
| Ctrl + Right | Option + Right | Move Caret to Next Word: move the caret one word right |
| Home | Command + Left | Move Caret to Line Start: move the caret to the line start |
| End | Command + Right | Move Caret to Line End: move the caret to the line end |
| Ctrl + Shift + M | Control + M | Move Caret to Matching Brace: jump to the matching brace |
| Ctrl + [ | Command + Option + [ | Move Caret to Code Block Start: jump to the block start |
| Ctrl + ] | Command + Option + ] | Move Caret to Code Block End: jump to the block end |
| Alt + Down | Control + Shift + Down | Next Method: move the caret to the next method |
| Alt + Up | Control + Shift + Up | Previous Method: move the caret to the previous method |
Select Text Shortcuts
Selection shortcuts are the caret shortcuts with Shift held down, plus two that grow or shrink the selection by one level at a time.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + A | Command + A | Select All: select everything in the file |
| Ctrl + Shift + Left | Option + Shift + Left | Move Caret to Previous Word with Selection: extend the selection one word left |
| Ctrl + Shift + Right | Option + Shift + Right | Move Caret to Next Word with Selection: extend the selection one word right |
| Shift + Home | Command + Shift + Left | Move Caret to Line Start with Selection: select to the line start |
| Shift + End | Command + Shift + Right | Move Caret to Line End with Selection: select to the line end |
| Ctrl + W | Option + Up | Extend Selection: grow the selection one code level |
| Ctrl + Shift + W | Option + Down | Shrink Selection: shrink the selection one level |
Code Folding Shortcuts
Folding hides blocks of code so a long file fits on one screen.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + NumPad Plus | Command + NumPad Plus | Expand: expand the folded block at the caret |
| Ctrl + NumPad Minus | Command + NumPad Minus | Collapse: collapse the block at the caret |
| Ctrl + Alt + NumPad Plus | Command + Option + NumPad Plus | Expand Recursively: expand the block and all inside it |
| Ctrl + Shift + NumPad Plus | Command + Shift + NumPad Plus | Expand All: expand every folded block |
| Ctrl + Shift + NumPad Minus | Command + Shift + NumPad Minus | Collapse All: collapse every block in the file |
| Ctrl + . | Command + . | Fold Selection: fold the selected code |
Multiple Carets and Selection Ranges
Multiple carets let you type the same edit in several places at once. Alt plus J selects the next occurrence of the word at the caret.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Shift + Click | Option + Shift + Click | Add/Remove Caret: add or remove a caret |
| Alt + Shift + Insert | Command + Shift + 8 | Toggle Column Selection Mode: switch column selection mode on or off |
| Double Ctrl + Up | Double Option + Up | Clone Caret Above: copy the caret to the line above |
| Alt + Shift + G | Option + Shift + G | Add Caret to Each Line in Selection: put a caret on every selected line |
| Alt + J | Control + G | Add Selection for Next Occurrence: select the next occurrence |
| Ctrl + Alt + Shift + J | Command + Control + G | Select All Occurrences: select every occurrence in the file |
Coding Assistance Shortcuts
Coding assistance is where DataGrip earns its keep: completion, intention actions, reformatting and commenting. Ctrl plus Space completes table and column names from your live schema.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Enter | Option + Enter | Show Intention Actions: show quick fixes at the caret |
| Ctrl + Space | Control + Space | Basic Completion: show code completion suggestions |
| Ctrl + Shift + Space | Control + Shift + Space | Type-Matching Completion: complete with the expected type |
| Ctrl + Shift + Enter | Command + Shift + Enter | Complete Current Statement: finish the statement with brackets |
| Ctrl + Alt + L | Command + Option + L | Reformat Code: reformat the SQL to code style |
| Ctrl + P | Command + P | Parameter Info: show the parameters of the function |
| Ctrl + Q | F1 | Quick Documentation: show documentation for the symbol |
| Ctrl + / | Command + / | Comment with Line Comment: comment the line with -- |
| Ctrl + Shift + / | Command + Option + / | Comment with Block Comment: comment with a block comment |
Context Navigation Shortcuts
Context navigation jumps between consoles, tabs, bookmarks and edit locations.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + G | Command + L | Go to Line/Column: jump to a line and column |
| Ctrl + Tab | Control + Tab | Switcher: switch between files and tool windows |
| Alt + F1 | Option + F1 | Select In: locate the file or object in a tool window |
| Ctrl + E | Command + E | Recent Files: show recently opened files and consoles |
| Ctrl + Shift + Backspace | Command + Shift + Backspace | Last Edit Location: jump back to the last edit |
| Ctrl + Alt + Left | Command + [ | Back: go back one navigation point |
| Ctrl + Alt + Right | Command + ] | Forward: go forward one navigation point |
| Alt + Right | Command + Shift + ] | Select Next Tab: switch to the next editor tab |
Find Everything Shortcuts
Find searches inside one file, Find in Files searches the whole project, and Search Everywhere searches files, actions and settings together.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Double Shift | Double Shift | Search Everywhere: search files, actions and settings |
| Ctrl + F | Command + F | Find: find text in the current file |
| F3 | Command + G | Find Next / Move to Next Occurrence: go to the next match |
| Shift + F3 | Command + Shift + G | Find Previous / Move to Previous Occurrence: go to the previous match |
| Ctrl + R | Command + R | Replace: replace text in the current file |
| Ctrl + Shift + F | Command + Shift + F | Find in Files: find text across the project |
| Ctrl + Shift + R | Command + Shift + R | Replace in Files: replace text across the project |
| Ctrl + Shift + N | Command + Shift + O | Go to File: open a file by typing its name |
| Ctrl + Shift + A | Command + Shift + A | Find Action: find any command by name |
Navigate from Symbols Shortcuts
Symbol navigation follows the code itself: from a use to its declaration, and from a table to its DDL.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + F7 | Option + F7 | Find Usages: find all uses of a database object |
| Ctrl + B | Command + B | Go to Declaration: go to the declaration at the caret |
| Ctrl + Alt + F7 | Command + Option + F7 | Show Usages: show usages in a popup |
| Ctrl + Shift + F7 | Command + Shift + F7 | Highlight Usages in File: highlight every usage in the file |
| Ctrl + N | Control + N | Go to Database Object: jump to a table, view or procedure |
| Ctrl + Alt + Shift + N | Control + Option + Shift + N | Go to Symbol: jump to any database object by name |
Code Analysis Shortcuts
Code analysis shortcuts walk through the issues DataGrip's inspections find in your SQL.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + Enter | Option + Enter | Show Intention Actions: show quick fixes at the caret |
| Ctrl + F1 | Command + F1 | Error Description: show the error at the caret |
| F2 | F2 | Next Highlighted Error: jump to the next error |
| Shift + F2 | Shift + F2 | Previous Highlighted Error: jump to the previous error |
| Ctrl + Alt + Shift + I | Command + Option + Shift + I | Run Inspection by Name: run one inspection by name |
| Alt + 6 | Command + 6 | Show Problems window: show the Problems tool window |
Run and Debug Shortcuts
Run and debug shortcuts start a configuration, step through it line by line, and manage breakpoints. F7 steps into a call, F8 steps over it, and Shift plus F8 steps out.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Shift + F10 | Control + R | Run context configuration: run the current configuration |
| Alt + Shift + F10 | Control + Option + R | Run: choose a configuration and run it |
| Shift + F9 | Control + D | Debug context configuration: debug the current configuration |
| Alt + Shift + F9 | Control + Option + D | Debug: choose a configuration and debug it |
| Ctrl + F2 | Command + F2 | Stop: stop the running program |
| F9 | Command + Option + R | Resume Program: resume the paused program |
| F8 | F8 | Step Over: run the line without entering the call |
| F7 | F7 | Step Into: step into the routine call |
| Shift + F8 | Shift + F8 | Step Out: finish the routine and return |
| Alt + F9 | Option + F9 | Run To Cursor: run until the line at the caret |
| Ctrl + F8 | Command + F8 | Toggle Line Breakpoint: toggle a breakpoint on the line |
| Ctrl + Shift + F8 | Command + Shift + F8 | View Breakpoints: open the breakpoints list |
Refactoring Shortcuts
Refactoring shortcuts change the structure of SQL without changing what it does. Rename is Shift plus F6.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + Alt + Shift + T | Control + T | Refactor This: open the refactoring menu |
| Shift + F6 | Shift + F6 | Rename: rename the object everywhere |
| Ctrl + F6 | Command + F6 | Change Signature: change a routine's signature |
| F6 | F6 | Move: move a database object |
| Ctrl + Alt + P | Command + Option + P | Introduce Parameter: turn the selection into a parameter |
| Ctrl + Alt + V | Command + Option + V | Introduce Variable: turn the selection into a variable |
Global VCS Actions Shortcuts
Version control shortcuts commit, push and move between changes.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Alt + ` | Control + V | VCS Operations Popup: open the version control menu |
| Ctrl + K | Command + K | Commit: commit the current changes |
| Ctrl + T | Command + T | Update Project: update the project from version control |
| Ctrl + Alt + Z | Command + Option + Z | Rollback: roll back the selected changes |
| Ctrl + Shift + K | Command + Shift + K | Push: push the commits to the remote |
| Ctrl + Alt + Shift + Down | Control + Option + Shift + Down | Next Change: go to the next change |
| Ctrl + Alt + Shift + Up | Control + Option + Shift + Up | Previous Change: go to the previous change |
Differences Viewer Shortcuts
The differences viewer compares two versions of a file side by side. F7 moves to the next difference, and Ctrl plus Alt plus R accepts the left side.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Ctrl + D | Command + D | Show Diff: show the differences for the file |
| F7 | F7 | Next Difference: go to the next difference |
| Shift + F7 | Shift + F7 | Previous Difference: go to the previous difference |
| Ctrl + Alt + R | Command + Control + Right | Accept Left Side: accept the left side |
| Ctrl + Alt + A | Command + Control + Left | Accept Right Side: accept the right side |
| Ctrl + Shift + Tab | Control + Shift + Tab | Select Opposite Diff Pane: switch focus to the other pane |
| Ctrl + Shift + D | Command + Shift + D | Show Diff Settings Popup: open the diff settings |
Tool Windows Shortcuts
Tool windows are the panels around the editor: Database Explorer, Files, Find, Debug and the rest. In DataGrip 2026.3 the Files window moved to Alt plus 4, and Alt plus 2 now opens the new Agent Sessions window.
| Shortcut (Windows / Linux) | Shortcut (macOS) | Function |
|---|---|---|
| Shift + Escape | Shift + Escape | Hide Active Tool Window: hide the tool window in focus |
| Ctrl + Shift + F12 | Command + Shift + F12 | Hide All Tool Windows: hide every tool window |
| F12 | F12 | Jump to Last Tool Window: jump back to the last tool window |
| Not assigned | Command + 1 | Show Database Explorer: show the database tree |
| Alt + 2 | Command + 2 | Show Agent Sessions: show the AI agent sessions window |
| Alt + 4 | Command + 4 | Show Files window: show the Files tool window |
| Alt + 5 | Command + 5 | Show Debug window: show the Debug window |
| Alt + 8 | Command + 8 | Show Database Output window: show the query results window |
| Alt + F12 | Option + F12 | Show Terminal window: show the built-in terminal |
How to Create Custom Shortcuts in DataGrip
DataGrip lets you change almost any shortcut, but the predefined keymaps cannot be edited directly. Open Settings with Ctrl plus Alt plus S, or Command plus comma on a Mac, and select Keymap. Search for the action by name, right-click it, and choose Add Keyboard Shortcut, then press the keys you want. DataGrip creates a copy of the predefined keymap with your change, so the original stays untouched. If the keys are already taken, DataGrip warns you and shows the conflicting action.
Tips for DataGrip Users
Learn shortcuts in small groups, starting with the five keys in the How to Use section, and add one group a week: running SQL first, then navigation, then editing. Always run a SELECT with Ctrl plus Enter before you run an UPDATE or DELETE, and use the data editor's Submit Changes to review a row before it reaches the database. Use Alt plus Enter on every warning DataGrip underlines: the intention actions fix the problem or qualify a table name in one keystroke. Press Ctrl plus Shift plus F12 to hide all tool windows when you want the whole screen for a long query, and press F4 on a foreign key value to jump straight to the related row instead of writing a JOIN. Finally, when a shortcut seems dead, check that the editor has focus and not a tool window, and remember that Ctrl plus Enter means run in a console but submit in the data editor.
Frequently Asked Questions
What is DataGrip used for?
DataGrip is JetBrains' database IDE for writing SQL, browsing schemas, editing table data and managing database objects. It connects to PostgreSQL, MySQL, SQL Server, Oracle, SQLite, MongoDB and many other databases, and it works on Windows, macOS and Linux.
What is the shortcut to run SQL in DataGrip?
Press Ctrl plus Enter on Windows and Linux, or Command plus Enter on a Mac, to run the SQL statement at the caret. Select part of the query first if you only want to run that part. In the data editor the same Ctrl plus Enter submits the changes you made to a row instead of running SQL.
How do I jump to a table's data in DataGrip?
Select the table in the Database Explorer and press F4 to open its data. Inside the data editor, press F4 on a foreign key value to jump to the related row, and Alt plus F7 to find the rows that reference the current row.
How do I format SQL in DataGrip?
Press Ctrl plus Alt plus L on Windows and Linux, or Command plus Option plus L on a Mac, to reformat the SQL in the current console to the code style. Change the SQL formatting rules in Settings, then Editor, then Code Style, then SQL.
How do I find a table or view quickly in DataGrip?
Press Ctrl plus N on Windows and Linux, or Control plus N on a Mac, to jump to a database object by name, or press Double Shift for Search Everywhere and type the table name.
Can I change keyboard shortcuts in DataGrip?
Yes. Open Settings with Ctrl plus Alt plus S, or Command plus comma on a Mac, and select Keymap. Search for the action, right-click it, and choose Add Keyboard Shortcut. DataGrip copies the predefined keymap with your change, and warns you if the keys are already used.
Which DataGrip version do these shortcuts apply to?
Every shortcut here was verified against JetBrains' official DataGrip keyboard shortcut reference, which covers the default keymap used by the current release, DataGrip 2026.3, released in November 2026.
By Umar Farooq, Tech Know.


0 Comments