GoLand 2020.1 Help

Favorites tool window

View | Tool Windows | Favorites
Alt+2

The Favorites tool window lets you manage the following lists:

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

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

  • Select one or more items in the Project tool 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.

Toolbar buttons

ItemShortcutDescription
the Add buttonAlt+InsertUse this button to create 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 Click this button to rename the selected list.
the Remove buttonAlt+Delete

Use this button to delete the selected list or list item.

Depending on the selection, the following behaviors take place:

  • If a Favorites list the Favorite icon, or one of the nested favorites is selected, click this button to delete an entire favorites list, or the selected item. In doing so, an item or a list is deleted from the Favorites tool window, but is left intact in project.

  • If a bookmark under the Bookmarks list the Bookmark icon is selected, click this button to delete this bookmark from the list and from the source code.
    Vice versa, if a bookmark is deleted from the source code, it is also removed from the Favorites tool window.

  • If a breakpoint under the Breakpoints list the Breakpoint icon is selected, click this button to delete the selected breakpoint from the list and from the source code.
    Vice versa, if a breakpoint 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 Project tool window.

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 -Use this button to collapse all expanded nodes in the current view.
icons.general.gearPlain.png Click this button to access a subset of the context menu commands that let you configure window's viewing mode.
Hide tool windowShift+Escape

Use this icon or shortcut to hide the tool window .

When used in combination with the Alt key, clicking this icon hides all the tool windows attached to the same tool window bar.

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
Show Members

Use this command to turn the Show Members option on or off.

If this option is on, the class members (fields, methods, and so on.) are shown.

Navigate with Single Click

Use this command to turn the Navigate with Single Click option on or off.

If this option is on, GoLand automatically navigates from a file (or a class member) selected in the Favorites tool window to the corresponding source file (or its fragment) in the editor. If the corresponding file is not currently open, it will open automatically.

Always Select Opened Element

Use this command to turn the Always Select Opened Element option on or off.

If this option is on, GoLand automatically navigates from a file (or a class member) selected in the editor, to the corresponding file in the Favorites tool window.

Show Toolbar
ModesCheck the Tool window view modes detailed description.
Remove from SidebarSelect this option to close the window and remove it from the sidebar. To return it, press Alt+2.
Move toUse this option to move the window according to your preference.
ResizeUse this option to resize the window. You can stretch it in different directions or maximize it.
HideUse this option to close the window.

Using drag-and-drop

You can use drag to:

  • Add items to favorites: drag the item of interest from the Project tool window and drop it onto the desired favorites list in the Favorites tool window.

  • Drag an external item from the Explorer/Finder and drop it onto the desired favorites list in the Favorites tool window.

  • Move an item from one favorites list to another in the Favorites tool window.

Last modified: 18 July 2020