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.

This entry was posted in New Features and tagged , , . Bookmark the permalink.

11 Responses to Favorites tool-window in IntelliJ IDEA 11

  1. jtonic says:

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

    Thank you for the tip.

  2. fibric says:

    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 :D
    the first thing is done properly now lets see whats the next step of improvements on this particular feature :D

  3. @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. Marc says:

    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. Holger says:

    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.

    Best,
    Holger

  6. ravi says:

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

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

  8. ravi says:

    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. Try to find this tag inside a project iws file.

  10. Coffee-fan says:

    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. Almeida says:

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

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">