PyCharm 2020.2 Help

Favorites tool window

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+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 Click this button to rename the selected list.
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. In this case, the item or the list is deleted from the Favorites tool window, but is left attached in project.

  • 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.

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

Show fields, methods, and other class members.

Navigate with Single Click

Navigate automatically from a file or class member 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 or class member 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. To return it, press Alt+2.
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 Project 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: 03 September 2020