DataGrip Keyboard Shortcut Keys: Complete List (With Functions Explained)

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 ShiftDouble ShiftSearch Everywhere: search files, actions and settings
Ctrl + Shift + ACommand + Shift + AFind Action: find any command by name
Alt + 4Command + 4Show Files window: show the Files tool window
Ctrl + ECommand + ERecent Files: show recently opened files and consoles
Alt + F7Option + F7Find Usages: find all uses of a database object
Alt + InsertCommand + NGenerate: generate SQL code for tables and objects
Double CtrlDouble ControlRun Anything: run a command, console or configuration
Alt + Shift + F9Control + Option + DDebug: start debugging a configuration
Alt + `Control + VVCS Operations Popup: open the version control menu
Ctrl + Alt + LCommand + Option + LReformat 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 + EnterCommand + EnterExecute Statement: run the SQL statement at the caret
Ctrl + Alt + GCommand + Option + GGenerate SQL for Object: generate SQL for the selected object
Shift + Ctrl + Alt + FShift + Command + Option + FFull-Text Search in Database: search text across the database
Alt + 8Command + 8Show Database Output window: show where query results appear
F4F4Jump to Table's Data: open the data of the selected table
Ctrl + BCommand + BJump to DDL: go to the definition of the object
Ctrl + F6Command + F6Modify Object: open the modify dialog for the object
F4F4Go to Related Data: follow a foreign key to the related row
Alt + F7Option + F7Go 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 + EnterControl + EnterSubmit Changes: save the edited rows to the database
Ctrl + Alt + ZControl + Option + ZRevert Changes: undo the edits in the data editor
Ctrl + SpaceControl + SpaceValue Completion: suggest values for the cell
Ctrl + QControl + QQuick Cell/Row View: preview the cell or row value
Shift + EnterShift + EnterMaximize Cell View: open the cell value in a large view
Ctrl + F12Control + F12Column List: list the columns of the table
Shift + SpaceShift + SpaceSelect 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 + XCommand + XCut: cut the selection
Ctrl + CCommand + CCopy: copy the selection
Ctrl + VCommand + VPaste: paste from the clipboard
Ctrl + SCommand + SSave All: save all open files
Ctrl + ZCommand + ZUndo: undo the last change
Ctrl + Shift + ZCommand + Shift + ZRedo: redo a change you undid
Shift + EnterShift + EnterStart New Line: start a new line below
Ctrl + Alt + EnterCommand + Option + EnterStart New Line Before Current: start a new line above
Ctrl + YCommand + BackspaceDelete Line: delete the whole current line
Ctrl + DCommand + DDuplicate 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 + LeftOption + LeftMove Caret to Previous Word: move the caret one word left
Ctrl + RightOption + RightMove Caret to Next Word: move the caret one word right
HomeCommand + LeftMove Caret to Line Start: move the caret to the line start
EndCommand + RightMove Caret to Line End: move the caret to the line end
Ctrl + Shift + MControl + MMove 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 + DownControl + Shift + DownNext Method: move the caret to the next method
Alt + UpControl + Shift + UpPrevious 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 + ACommand + ASelect All: select everything in the file
Ctrl + Shift + LeftOption + Shift + LeftMove Caret to Previous Word with Selection: extend the selection one word left
Ctrl + Shift + RightOption + Shift + RightMove Caret to Next Word with Selection: extend the selection one word right
Shift + HomeCommand + Shift + LeftMove Caret to Line Start with Selection: select to the line start
Shift + EndCommand + Shift + RightMove Caret to Line End with Selection: select to the line end
Ctrl + WOption + UpExtend Selection: grow the selection one code level
Ctrl + Shift + WOption + DownShrink 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 PlusCommand + NumPad PlusExpand: expand the folded block at the caret
Ctrl + NumPad MinusCommand + NumPad MinusCollapse: collapse the block at the caret
Ctrl + Alt + NumPad PlusCommand + Option + NumPad PlusExpand Recursively: expand the block and all inside it
Ctrl + Shift + NumPad PlusCommand + Shift + NumPad PlusExpand All: expand every folded block
Ctrl + Shift + NumPad MinusCommand + Shift + NumPad MinusCollapse 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 + ClickOption + Shift + ClickAdd/Remove Caret: add or remove a caret
Alt + Shift + InsertCommand + Shift + 8Toggle Column Selection Mode: switch column selection mode on or off
Double Ctrl + UpDouble Option + UpClone Caret Above: copy the caret to the line above
Alt + Shift + GOption + Shift + GAdd Caret to Each Line in Selection: put a caret on every selected line
Alt + JControl + GAdd Selection for Next Occurrence: select the next occurrence
Ctrl + Alt + Shift + JCommand + Control + GSelect 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 + EnterOption + EnterShow Intention Actions: show quick fixes at the caret
Ctrl + SpaceControl + SpaceBasic Completion: show code completion suggestions
Ctrl + Shift + SpaceControl + Shift + SpaceType-Matching Completion: complete with the expected type
Ctrl + Shift + EnterCommand + Shift + EnterComplete Current Statement: finish the statement with brackets
Ctrl + Alt + LCommand + Option + LReformat Code: reformat the SQL to code style
Ctrl + PCommand + PParameter Info: show the parameters of the function
Ctrl + QF1Quick 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 + GCommand + LGo to Line/Column: jump to a line and column
Ctrl + TabControl + TabSwitcher: switch between files and tool windows
Alt + F1Option + F1Select In: locate the file or object in a tool window
Ctrl + ECommand + ERecent Files: show recently opened files and consoles
Ctrl + Shift + BackspaceCommand + Shift + BackspaceLast Edit Location: jump back to the last edit
Ctrl + Alt + LeftCommand + [Back: go back one navigation point
Ctrl + Alt + RightCommand + ]Forward: go forward one navigation point
Alt + RightCommand + 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 ShiftDouble ShiftSearch Everywhere: search files, actions and settings
Ctrl + FCommand + FFind: find text in the current file
F3Command + GFind Next / Move to Next Occurrence: go to the next match
Shift + F3Command + Shift + GFind Previous / Move to Previous Occurrence: go to the previous match
Ctrl + RCommand + RReplace: replace text in the current file
Ctrl + Shift + FCommand + Shift + FFind in Files: find text across the project
Ctrl + Shift + RCommand + Shift + RReplace in Files: replace text across the project
Ctrl + Shift + NCommand + Shift + OGo to File: open a file by typing its name
Ctrl + Shift + ACommand + Shift + AFind 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 + F7Option + F7Find Usages: find all uses of a database object
Ctrl + BCommand + BGo to Declaration: go to the declaration at the caret
Ctrl + Alt + F7Command + Option + F7Show Usages: show usages in a popup
Ctrl + Shift + F7Command + Shift + F7Highlight Usages in File: highlight every usage in the file
Ctrl + NControl + NGo to Database Object: jump to a table, view or procedure
Ctrl + Alt + Shift + NControl + Option + Shift + NGo 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 + EnterOption + EnterShow Intention Actions: show quick fixes at the caret
Ctrl + F1Command + F1Error Description: show the error at the caret
F2F2Next Highlighted Error: jump to the next error
Shift + F2Shift + F2Previous Highlighted Error: jump to the previous error
Ctrl + Alt + Shift + ICommand + Option + Shift + IRun Inspection by Name: run one inspection by name
Alt + 6Command + 6Show 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 + F10Control + RRun context configuration: run the current configuration
Alt + Shift + F10Control + Option + RRun: choose a configuration and run it
Shift + F9Control + DDebug context configuration: debug the current configuration
Alt + Shift + F9Control + Option + DDebug: choose a configuration and debug it
Ctrl + F2Command + F2Stop: stop the running program
F9Command + Option + RResume Program: resume the paused program
F8F8Step Over: run the line without entering the call
F7F7Step Into: step into the routine call
Shift + F8Shift + F8Step Out: finish the routine and return
Alt + F9Option + F9Run To Cursor: run until the line at the caret
Ctrl + F8Command + F8Toggle Line Breakpoint: toggle a breakpoint on the line
Ctrl + Shift + F8Command + Shift + F8View 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 + TControl + TRefactor This: open the refactoring menu
Shift + F6Shift + F6Rename: rename the object everywhere
Ctrl + F6Command + F6Change Signature: change a routine's signature
F6F6Move: move a database object
Ctrl + Alt + PCommand + Option + PIntroduce Parameter: turn the selection into a parameter
Ctrl + Alt + VCommand + Option + VIntroduce 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 + VVCS Operations Popup: open the version control menu
Ctrl + KCommand + KCommit: commit the current changes
Ctrl + TCommand + TUpdate Project: update the project from version control
Ctrl + Alt + ZCommand + Option + ZRollback: roll back the selected changes
Ctrl + Shift + KCommand + Shift + KPush: push the commits to the remote
Ctrl + Alt + Shift + DownControl + Option + Shift + DownNext Change: go to the next change
Ctrl + Alt + Shift + UpControl + Option + Shift + UpPrevious 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 + DCommand + DShow Diff: show the differences for the file
F7F7Next Difference: go to the next difference
Shift + F7Shift + F7Previous Difference: go to the previous difference
Ctrl + Alt + RCommand + Control + RightAccept Left Side: accept the left side
Ctrl + Alt + ACommand + Control + LeftAccept Right Side: accept the right side
Ctrl + Shift + TabControl + Shift + TabSelect Opposite Diff Pane: switch focus to the other pane
Ctrl + Shift + DCommand + Shift + DShow 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 + EscapeShift + EscapeHide Active Tool Window: hide the tool window in focus
Ctrl + Shift + F12Command + Shift + F12Hide All Tool Windows: hide every tool window
F12F12Jump to Last Tool Window: jump back to the last tool window
Not assignedCommand + 1Show Database Explorer: show the database tree
Alt + 2Command + 2Show Agent Sessions: show the AI agent sessions window
Alt + 4Command + 4Show Files window: show the Files tool window
Alt + 5Command + 5Show Debug window: show the Debug window
Alt + 8Command + 8Show Database Output window: show the query results window
Alt + F12Option + F12Show 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.

Post a Comment

0 Comments