Navigation
Open the DDL of the selected object:
Open the object data:
Go to the object in the Database Explorer:
You can quickly navigate through 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.
note
In the video, the DataGrip user interface is Classic UI. Starting from version 2023.1, the New UI is available. For more information about the New UI, refer to the corresponding topic.
To navigate backwards, press . To navigate forward, press .
To quickly move to the top of the editor, press . Alternatively, press to move the caret to the bottom of your editor.
To navigate to the last edited location, press .
To find the current caret location in the editor, press and 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 .
To move caret between matching code block braces, press .
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 or .
By default, DataGrip moves the caret to the end of the current word.
When you move the caret to the previous word, the caret is placed at the beginning of the current word. You can configure the position of the caret when you use these actions.
In the Settings dialog () , 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 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 and search for the Move Caret Forward a Paragraph with Selection or Move Caret Backward a Paragraph with Selection action.
If you need, you can assign shortcuts to these actions. For more information, refer to Configure keyboard shortcuts.
You can also check your recently viewed or changed code using the Recent Locations popup.
To open the Recent Locations popup, press . The list starts with the latest visited location at the top and contains code snippets.
While in the popup, use the same shortcut or select the Show changed only checkbox to see only the locations with changed code.
To search for a code snippet, in the Recent Locations popup, start typing your search query. You can search by the code text, filename, or breadcrumbs.
To delete a location entry from the search results, press either Delete or .
Keep in mind that the deleted location is also removed from the list of entries that you access with the shortcut.
To create an anonymous bookmark, place the caret at the needed code line and press .
To create a bookmark with mnemonics, place the caret at the needed code line, press and select a number or a letter for the mnemonics.
To open the Bookmarks dialog, press . 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 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 and the bookmark's number.
You can check how to toggle between bookmarks with mnemonics, in the settings (), on the Keymap page under the Other node.
You can use the Recent Changes list to see a list of files that were changed either locally or externally in your project. If necessary, you can revert those changes.
In the main menu, go to View | Recent Changes .
In the Recent Changes tab of the Local History tool window, select a change.
The IDE shows you a list of files modified with this change in the panel below.
Press or double-click the file to open the diff viewer where you can check what was changed and revert those changes if necessary.
You can navigate to the initial declaration of a symbol and symbol's type from its usage.
You can automatically locate a file in the Files tool window.
If the file is opened in the editor, press to open the Select In popup.
In the popup, select Files View and press . DataGrip locates your target in the Files tool window.

You can use the Open Files with Single Click (previously called Autoscroll to Source) and Always Select Opened Files (previously called Autoscroll from Source) actions to locate your file in the Files tool window.
In the Files tool window, right-click the Files toolbar and from the context menu, select Behavior.
Enable Always Select Opened File. After that DataGrip will track the file that is currently opened in the active editor tab and locate it in the Files tool window automatically.
You can also select the Open Files with Single Click option. In this case, when you click a file in the Files view, DataGrip will automatically open it in the editor.
To jump to the next or previous found issue in your code, press or 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 Go to high priority problems only.
To have DataGrip jump between all detected code issues, choose Go to next problem.
You can use the structure view popup to locate a code element in the file you are working on.
To open the structure view popup, press .
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 to return to the editor and the corresponding element.
The lens mode lets you preview your code without actually scrolling to it. The mode is available in the editor by default when you hover over the scrollbar. It is especially useful when you hover over a warning or an error message.
To disable the lens mode, right-click the code analysis marker located on the right side of the editor and in the context menu clear the Show code lens on the scrollbar hover checkbox.
As an alternative, in the Settings dialog () , go to Editor | General | Appearance and clear the Show code lens on the scrollbar hover checkbox.
Breadcrumbs display the path from the code element where your caret is placed to the root element of the file. They help you track your location within a file's hierarchy.
Each part of the breadcrumb is clickable, allowing easy navigation to parent code elements. You can also use tooltips for additional information, which appear when you hover over a breadcrumb section.
Breadcrumbs are enabled by default for some programming languages. You can select the languages in settings.
To change the location of breadcrumbs, right-click a breadcrumb in the editor, go to Appearance | Breadcrumbs, and select a new location: at the top or at the bottom of the editor.
To edit the settings for breadcrumbs, enable or disable breadcrumbs for other languages, or change their appearance, press to open settings and then select Editor | General | Breadcrumbs.
Clear the Show breadcrumbs option to hide breadcrumbs in the editor.

Use the Navigation bar as a handy tool to find your way across the project.
Press to activate the Navigation bar.
Use the arrow keys or the mouse pointer to locate the desired file.
Double-click the selected file, or press to open it in the editor.
In the editor, press .
In the Go to Line/Column dialog, specify a line or column number, or both, separating them with : and click OK.
If you don't want to see the line numbers in the editor, in the Settings dialog () , go to Editor | General | Appearance and clear the Show line numbers checkbox.
note
For quicker access, assign a shortcut to the Show line numbers action.
In the editor, press or in the context menu, select Open in | Finder.
In the Reveal in Finder popup, select a file or a directory to open in the path finder and press .
You can search for the recent and recently edited files with the Recent Files popup.
To open the Recent Files popup with the list of recent files, press .
To see only the recently edited files, press again or select the Show changed only checkbox.
To search for items in the popup, use the Speed Search functionality. Just start typing a search query, and the Search for field appears. DataGrip displays the results based on your search query, the list shrinks as you type.

To go to the definition of a column, table or any other object, select the object name in your code and press .
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 .
In the Database Explorer, do one of the following:
Click the DDL button on the toolbar.
Click an object and select Navigation | Go to DDL.
Press .
With the switcher, you can switch between open files, consoles, and tool windows.
To open the Switcher window, press . Do not release the Ctrl key. Use arrow keys to move in the Switcher window. When you release the key, the selected item becomes active, and the switcher closes.
tip
Also, you can use to go down the list, and with the additional to go up the list.
note
On macOS, a combination of Ctrl and arrow keys are shortcuts that are used for the Mission control functionality. To use the switcher, change the shortcuts in the macOS system settings.