Favorites tool-window in IntelliJ IDEA 11

When working with big projects we always come back to 10-20 items/files where we do the most of our work.

IntelliJ IDEA helps you collecting all these items in one place — ‘Favorites’. It’s easy to add a file, a class or a method to the Favorites by simply pressing Alt+Shift+F. You can also drag and drop items to the Favorites.

And now with ‘Favorites’ being a separate tool-window, just press Alt+2 (or Cmd+2) whenever you need to access one of your precious items again.

Comments below can no longer be edited.

12 Responses to Favorites tool-window in IntelliJ IDEA 11

  1. Avatar

    jtonic says:

    December 29, 2011

    It seems that Alt+Shift+F doesn’t work for methods in groovy script files (maven project).

    Thank you for the tip.

  2. Avatar

    fibric says:

    December 29, 2011

    it would be great if the favorites function could collect the most used items automatically. so i dont have to remember complicated key shortcuts but got my list of most used items 😀
    the first thing is done properly now lets see whats the next step of improvements on this particular feature 😀

  3. Avatar

    Konstantin Bulenkov says:

    December 30, 2011

    @jtonic. It does. You should stay on groovy method name. I’ll make it possible to add a method to Favorites if you stay inside it.

    @fibric Well, could you please file a feature request in YouTrack?

  4. Avatar

    Marc says:

    December 30, 2011

    Favorites is cool and I’ve used it for a long time but I stopped using it for a while and now I’m going to start up again but I can see already it needs some improvements:

    1) The favorites menu does not allow me to rename my favorites.

    2) I should be able to right click on the name of the favorite and open all the files (or whatever) in a single shot. Currently I have to manually double click each item to open it.

    3) When you select a favorite and then say you want to do a Inspect Code analysis, it doesn’t auto-scope the analysis to your favorites. You have to manually do that after the dialog comes up. The same thing is true for the “Find in path” and Replace in path features.

  5. Avatar

    Holger says:

    January 4, 2012

    I love the favorites list however they suffer from a fundamental flaw: They can not be searched correctly. Intellij fails to search external favorite files (which don’t belong to any module). If this problem could be fixed, favorites would be just great. It does not matter which search scope is used: is simply does not work.


  6. Avatar

    ravi says:

    July 26, 2012

    Is there a way to export favorites and pass on to another team member??

  7. Avatar

    Konstantin Bulenkov says:

    July 26, 2012

    @ravi Yes. You should open your workspace.xml in /.idea/workspace.xml and copy whole tag starting with:
    component name=”FavoritesManager”
    send it to your team member, and s/he should replace corresponding section of his workspace.xml

  8. Avatar

    ravi says:

    July 27, 2012

    Thanks for the information, however for the projects which are created using version 11 i can see .idea folder.

    there are some projects created using version 8 & for those project i do not see .idea directory. But within IDE favorites are set, where are those favorites stored?

  9. Avatar

    Konstantin Bulenkov says:

    July 29, 2012

    Try to find this tag inside a project iws file.

    • Avatar

      Halil says:

      July 11, 2016

      It would be great if following features are provided:

      – import/export favorites
      – global favorites
      – maven plugin which provides favorite files information to intellij idea

  10. Avatar

    Coffee-fan says:

    September 28, 2012

    It would be great if one could provide annotations associated to the favorites, or alternately label (title) the favorite in some way. This would provide more context than just the bookmark list name.

  11. Avatar

    Almeida says:

    January 21, 2014

    it is good favorites for lines with note or comment as lable, e.g code note, personal usage.

Discover more