When you open a project in DataGrip, the default user interface looks as follows:
Depending on the set of plugins and configuration settings, your IDE may look and behave differently.
Use the editor to read, write, and explore your source code.
Action indicators and action list
Different icons that appear in the left editor gutter are action indicators that help you notice available quick fixes and other actions.
Quick fixes and other commands relevant for the current caret position are available in the action list that you can open with Alt+Enter or by cliking an action indicator.
The left part of the status bar at the bottom of the main window shows the most recent event messages and descriptions of actions when you hover over them with the mouse pointer. Click the message to open it in the Event Log. Right-click the message in the status bar and select Copy to paste the message text when you are searching for a solution to a problem or need to add it to the support ticket or to the DataGrip issue tracker.
The status bar also indicates the overall project and IDE status and provides access to various settings. The table below lists default icons and elements shown on the status bar.
Depending on the set of plugins and configuration settings, there can be other elements in addition to the default ones. Right-click the right part of the status bar to select the elements you want to show or hide.
Click to show/hide tool window bars. Double-press and hold Alt to show hidden tool window bars. For more information, see Hide or showing the tool window bars.
Click to show the Background Tasks manager. This icon is visible only when a background task is in progress.
Numbers divided by a colon denote the current caret position in the editor (line and column). Click the numbers to jump to a specific line and column. If you select a code fragment in the editor, DataGrip also shows the number of characters and line breaks in the selected fragment.
Click to change the line endings of the current file in the editor.
Click to change the encoding of the current file in the editor.
Click to change the indents style used in the current file.
Click to lock the file from editing (set it to read-only).
Click to change the code inspection highlighting settings.
Use the slider to choose between Inspections (highlight everything), Syntax (highlight only syntax errors), and None (do not highlight anything).
Select the Power Save Mode checkbox to minimize power consumption by eliminating all background operations . In this mode the IDE is more like a text editor without background compilation, code completion, code inspections, and highlighting.
Tool windows provide functionality that supplements editing code. For example, the Database tool window shows you the structure of your database, and the Services tool window displays the output of your SQL code when you run it.
By default, tool windows are docked to the sides and bottom of the main window. You can arrange them as necessary, undock, resize, hide, and so on. Right-click the title of the tool window or click in the title for its arrangement options.
You can assign shortcuts to quickly access the tool windows that you frequently use. Some of them have shortcuts by default. For example, to open the Database tool window, press Alt+1, and to open the Services tool window, press Alt+8. To jump from the editor to the last active tool window, press F12.
You can right-click various elements of the interface to see the actions available in the current context. For example, right-click a database object in the Database tool window for actions related to that database object, or right-click in the editor to see actions that apply to the current code fragment.
Most of these actions can also be performed from the main menu at the top of the screen or the main window. Actions with shortcuts show the shortcut next to the action name.
Popup menus provide quick access for actions related to the current context. Here are some useful popup menus and their shortcuts:
Alt+Insert opens the Generate popup for generating boilerplate code based on the context.
Ctrl+Shift+Alt+T opens the Refactor This popup with a list of contextually available refactorings.
Alt+` opens the VCS Operations popup with contexutally available acttios for your version control system.
You can create custom popup menus using quick lists of actions that you often use.