CLion 2021.2 Help

Favorites

When your project comprises thousands of files, browsing them can be tedious. Normally, there's a number of files or folders that you need more often than the rest of the project. To quickly access such files, add them to the Favorites list.

The list can include project files and folders, bookmarks, and breakpoints.

There's always one pre-defined empty list that has the same name as the project. You can create more lists and move items between them, if necessary.

Favorites tool window

Whenever you need to access your favorite items, press Alt+2 or choose View | Tool Windows | Favorites from the menu.

To open one or more favorite items, select them in the list and press F4.

Add one or multiple files

  1. Open the file in the editor and press Alt+Shift+F.

  2. Select the existing list to which you want to add the file, or click Add to New Favorites List to add it to the new list.

    You can quickly add all files opened in the editor to the list of favorite items. Right-click any tab and select Add All to Favorites.

Add folders and packages

  1. Right-click the necessary folder or package in the Project or Find tool window and select Add to Favorites.

  2. Select the existing list to which you want to add the item, or click Add to New Favorites List to add it to the new list.

Add instance and class members

  1. Position the caret at the string with the necessary class or instance member and select File | Add to Favorites from the main menu.

  2. Select the existing list to which you want to add the item, or click Add to New Favorites List to add it to the new list.

Add non-project files to the list of favorites

  1. From the main menu, select View | Tool Windows | Favorites Alt+2 to open the Favorites tool window.

  2. Drag the file or folder from Explorer or Finder to the desired list.

Move an item to another list

  1. From the main menu, select View | Tool Windows | Favorites Alt+2 to open the Favorites tool window.

  2. Select the necessary items and drag them to another list.

Last modified: 07 October 2021