DataGrip 2020.2 Help

Favorites tool window

The Favorites tool window lets you manage the following lists:

  • Favorite project items. Each list of Favorites in the tool window appears with the star icon the Favorite icon.

  • Bookmarks. The list of bookmarks is marked with the Bookmark icon.

The lists of bookmarks are filled in automatically, as the new bookmarks are added.

To add items to favorites, do one of the following:

  • Select one or more items in the Files window or the Find tool window. Then choose File | Add To Favorites.

  • Right-click an editor tab, and select Add to Favorites or Add All to Favorites.

Favorites tool window

Toolbar buttons

ItemShortcutDescription
the Add buttonAlt+InsertCreate a new list of favorite items. In the Add New Favorites List dialog, specify the name for the new list and click OK.
EditCtrl+Enter

Depending on the selection, perform one of the following actions:

  • If a Favorites list the Favorite icon, or one of the nested favorites is selected, click this button to rename this list.

  • If a bookmark under the Bookmarks list the Bookmark icon is selected, click this button to change short description of the selected bookmark.

the Remove buttonAlt+Delete

Delete the selected list or list item.

Depending on the selection, the button performs the following actions:

  • If the Favorites list the Favorite icon or one of the nested favorites is selected, deletes an entire list of favourites or the selected item.

  • If a bookmark under the Bookmarks list the Bookmark icon is selected, deletes this bookmark from the list and from the source code.

    If a bookmark is deleted from the source code, it is also removed from the Favorites tool window.

Context menu commands

When you right-click an item in the content pane, the context menu for this item is shown. This menu provides access to all the functions available for the selected item.

The commands and functionally are similar to those in the Context menu commands for the content pane items.

Title bar context menu and buttons

You can right-click the window title bar and use the context menu to configure its viewing mode, associate the window with a different tool window bar, or resize and hide the window.

You can also use the toolbar buttons:

ItemShortcutDescription
Collapse allCtrl+NumPad -Collapse all expanded nodes in the current view.
Hide tool windowShift+Escape

Hide the tool window.

To hide all the tool windows, press Ctrl+Shift+F12.

Context menu of the side bar button

Right-click the side bar button to reveal this context menu. Refer to the section Tool window view modes for the detailed information about the viewing modes.

ItemDescription
Navigate with Single Click

Navigate automatically from a file selected in the Favorites tool window to the corresponding source file or its fragment in the editor.

Always Select Opened Element

Navigate automatically from a file selected in the editor, to the corresponding file in the Favorites tool window.

Show ToolbarDisplay the toolbar with editing buttons. To see the description of the toolbar, go to the Toolbar buttons section.
View modeSelect the viewing mode for the tool window. For more information about viewing modes, see Tool window view modes .
Remove from SidebarClose the window and remove it from the sidebar.
Move toMove the current window.
ResizeResize the window. You can stretch it in different directions or maximize it.
HideClose the window.

Dragging items to the Favourites tool window

You can perform the following actions by dragging.

  • To add an item to favorites, drag the item from the Files tool window to a list in the Favorites tool window.

  • To add an item to favorites from an external file manager, drag an item from the file manager a list in the Favorites tool window.

  • To move an item from one list to another, click the item and drag it to another list.

Last modified: 19 August 2020