DataGrip 2025.2 Help

Navigation

You can quickly navigate through your code in the editor using different actions and popups.

You can start with watching a video tutorial to check what navigation options are available in DataGrip.

Navigate with the caret

  • To see the previous caret position, select Navigate | Back from the main menu or press Ctrl+Alt+Left. To move forward, select Navigate | Forward or press Ctrl+Alt+Right.

  • To quickly move to the top of the editor, press Ctrl+Page Up. To move the caret to the bottom of your editor, press Ctrl+Page Down.

  • To navigate to the last edited location, press Ctrl+Shift+Backspace.

  • To find the current caret location in the editor, press Up and Down arrow keys.

  • To highlight a word at the caret you are trying to locate, select Edit | Find | Next Occurrence of the Word at Caret from the main menu. If you are using Windows, you can also press Ctrl+F3.

  • To see on what element the caret is currently positioned, press Alt+Q.

  • To move caret between matching code block braces, press Ctrl+Shift+M.

Move the caret

You can use different actions to move the caret through code. You can also configure where the caret should stop when moved by words and on line breaks.

  • To move the caret to the next word or the previous word, press Ctrl+Right or Ctrl+Left.

    By default, DataGrip moves the caret to the end of the current word. When you move the caret to the previous word, it is placed at the beginning of the current word.

    You can customize the caret position for these actions. In the Settings dialog (Ctrl+Alt+S) , go to Editor | General. In the Caret Movement section, use the When moving by words and Upon line break options to configure the caret's behavior.

  • To move the caret forward to the next paragraph or backward to the previous one, press Ctrl+Shift+A and search for the Move Caret Forward a Paragraph or Move Caret Backward a Paragraph action.

    You can also select a text and then move the caret forward or backward to a paragraph. Press Ctrl+Shift+A and search for the Move Caret Forward a Paragraph with Selection or Move Caret Backward a Paragraph with Selection action.

Find a line or column

  1. In the editor, press Ctrl+G.

  2. In the Go to Line/Column dialog, specify a line or column number, or both, separating them with : and click OK.

    Go to Line:Column dialog
  3. If you do not want to see the line numbers in the editor, in the Settings dialog (Ctrl+Alt+S) , go to Editor | General | Appearance and clear the Show line numbers checkbox.

Locate a code element with the Structure view popup

You can use the structure view popup to locate a code element in the file you are working on.

  1. To open the structure view popup, press Ctrl+F12.

  2. In the popup, locate an item you need. You can start typing a name of the element for DataGrip to narrow down the search. Press Enter to return to the editor and the corresponding element.

    Structure popup

Use bookmarks for navigation

  • To create an anonymous bookmark, place the caret at the needed code line and press F11.

  • To create a bookmark with mnemonics, place the caret at the needed code line, press Ctrl+F11 and select a number or a letter for the mnemonics.

  • To open the Bookmarks dialog, press Shift+F11. You can use this dialog to manage bookmarks, for example, delete, sort bookmarks, or supply them with a brief description.

  • To navigate to an existing bookmark with letter mnemonics, press Shift+F11 and then press a letter you need. DataGrip returns you to the editor and to the corresponding bookmark.

  • To navigate to an existing bookmark with number mnemonics, press Ctrl and the bookmark's number.

You can check how to toggle between bookmarks with mnemonics, in the settings (Ctrl+Alt+S), on the Keymap page under the Other node.

  • To jump to the next or previous found issue in your code, press F2 or Shift+F2 respectively. Alternatively, go to Navigate | Next / Previous Highlighted Error in the main menu.

    DataGrip places the caret immediately before the code issue.

  • Configure the way DataGrip navigates between code issues: it can either jump between all code issues or skip minor issues and only navigate between detected errors. Right-click the code analysis marker in the scroll bar area and choose one of the available navigation modes from the context menu:

    • To have DataGrip skip warnings, infos, and other minor issues, choose Problems with Highest Priority.

    • To have DataGrip jump between all detected code issues, choose All Problems.

Go from a reference to an object in the Database Explorer

  • To go to the definition of a column, table or any other object, select the object name in your code and press Alt+Shift+B.

Open a DDL definition of an object

In DataGrip, you can open and edit the source code of a database object directly in the editor. The source code can be opened from the editor or Database Explorer.

  • In the editor, click an object and select Go To | Declaration or Usages. Alternatively, press Ctrl+B.

  • In the Database Explorer, do one of the following:

    1. Click the DDL button on the toolbar.

    2. Click an object and select Navigation | Go to DDL.

    3. Press Ctrl+B.

Switch between files using the switcher

  • With the switcher, you can switch between open files, consoles, and tool windows.

    To open the Switcher window, press Ctrl+Tab. Do not release the Ctrl key. Use arrow keys to move in the Switcher window. When you release the Ctrl key, the selected item becomes active, and the switcher closes.

    the Switcher
14 September 2025