- In the Project, select the item or items you want to add to favorites.
- Do one of the following:
- On the main menu, point to .
- On the context menu of the selection, point to
-
To add the selected item or items to an existing favorites list, select the name of the list.
To create a new favorites list and add the selected item or items to it, select . In the Add New Favorites List dialog, specify the name of the new list and click OK.
2.7+Tip
You can add items to favorites using drag-and-drop: drag the item of interest from the Project tool window, or an external file from Explorer or Finder, and drop it onto the desired favorites list in the Favorites tool window.
Using the editor, you can add to favorites one file, or all the currently opened files.
- Right-click the editor tab of interest and select one of the following options:
- If you want to add the current file to favorites, select . (For the current file, is also available as an alternative.)
- If you want to add all the files open in the editor to favorites, select .
-
To add the item or items to an existing favorites list, select the name of the list.
To create a new favorites list and add the item or items to it, select . In the Add New Favorites List dialog, specify the name of the new list and click OK.
You have an option of creating a new favorites list when adding items to favorites or when moving a favorites list item to a different list.
You can also create a new (empty) favorites list just on its own, as a separate task:
- If the Favorites tool window is not currently shown, open it.
- Do one of the following:
- Click
on the toolbar. - Press Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertControl N or Control EnterControl N or Control EnterMeta N or Control Enter.
- Click
- In the Add New Favorites List dialog, specify the name of the new list and click OK.
- If the Favorites tool window is not currently shown, open it.
- Do one of the following:
- Right-click the list whose name you want to change and select Rename Favorites List.
- In the toolbar of the Favorites tool window, click
.
- In the New Name for Favorites List dialog box, change the name of the list as required, and click OK.
- If the Favorites tool window is not currently shown, open it.
- Right-click the list item that you are going to move and select Send To Favorites.
- To move the selected item to an existing favorites list, select the name of the destination list.
To create a new favorites list and move the item there, select Send To New Favorites List. In the Add New Favorites List dialog, specify the name of the new list and click OK.
To remove items from favorites, you can delete the corresponding favorites list items and/or the whole favorites lists.
- If the Favorites tool window is not currently shown, open it.
- Select the item or items that you want to remove from favorites. Note that you can select separate list items and the whole lists at the same time.
- Do one of the following:
- Click
on the toolbar. - Select Remove From Favorites in the context menu. (If a single favorites list is currently selected, note that there are also the following options: Delete Favorites List <list_name> and Delete All Favorites Lists Except <list_name>.)
- Press DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDeleteDeleteDelete or Backspace or Ctrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteControl DeleteControl DeleteControl Delete.
- Click
- If the Favorites tool window is not currently shown, open it.
- Select the item or items that you want to export. Note that you can select separate list items and the whole lists at the same time.
- On the toolbar of the Favorites tool window, click

- In the Export Preview dialog box that opens, specify the target location. You can accept
the default location <project>/Favorites.txt, or click the ellipsis button
and define new target location.
If the specified file does not yet exist, PyCharm creates it. If the target file already exists, PyCharm suggests to append the exported information, or overwrite the file.

