DataGrip 2018.3 Help

Menus and toolbars

DataGrip menus and toolbars contain commands that affect the entire project or large sections of the project. To apply a command to the current context, use context-sensitive pop-up menus. Most of the commands has an associated keyboard shortcut to enable quicker access to it.

Use menu items with a checkbox in the View menu to show or hide the main elements of the DataGrip window. For example, if you want to show the main toolbar, select View | Toolbar.

Main elements of DataGrip window

1. Main menu
By using the main menu, you can open and create projects, refactor the code, keep files under version control, or run other commands.
The main menu
2. Main toolbar
The main toolbar contains buttons that duplicate the essential commands for quicker access.

By default, the main toolbar is hidden. To display it, select View | Toolbar on the main menu.

The main toolbar
3. Navigation bar
The Navigation bar is an alternative to the Database tool window.
The navigation bar
4. Context menus
Context menus, available with right-click, contain commands applicable to the current context.
The context menu
5. Pop-up menus
Pop-up menus, available with Alt+Insert, contain commands applicable to the current context.
The popup menu

Tips and tricks

  • Show or hide the main elements of the DataGrip UI by using the View menu.

  • Descriptions of the actions from menus and toolbar buttons are displayed in the left side of the Status bar.

  • If you know which action you want to perform, but do not know where to find it, press Ctrl+Shift+A, type the action name, and select it from the suggestion list.

The Linux native menu

In DataGrip for Linux, you can use the Macintosh-style menu – a horizontal menu bar attached to the top of the screen.

Enable the native menu

  1. Press Ctrl+Shift+A to open the Find Action dialog, type Experimental features, and press Enter.

  2. Select the checkbox next to the linux.native.menu option, apply the changes, and close the dialog.

  3. Restart DataGrip.

Linux native menu enabled for the IDE

Troubleshooting

The native menu is an experimental feature that may not work correctly with all Linux window managers. If your IDE doesn't start after you have enabled the native menu, disable it using the JVM options:

  1. Open the Toolbox App, click the Settings icon next to the necessary instance, and select Settings.

  2. Next to Java Virtual Machine options, click Edit.

  3. Add the following line to the file and save the changes:
    -Dlinux.native.menu.force.disable=true

  4. Start DataGrip.

  1. Create a copy the file with JVM options (options that are used to run DataGrip):

    <IDE_HOME>/bin/datagrip64.vmoptions (for the default 64-bit JVM)
    <IDE_HOME>/bin/datagrip.vmoptions (for optional 32-bit JVM)

  2. Insert the file copy to the configuration directory located in: ~/.<PRODUCT><VERSION>/config.

  3. Add the following line to the file and save the changes:
    -Dlinux.native.menu.force.disable=true

  4. Start DataGrip.

Last modified: 6 February 2019