• Home
  • About

Eclipse Tips

Feeds:
Posts
Comments

Fuzzy search

December 7, 2007 by David

There are 2 essential shortcuts for searching for and opening files: Ctrl-Shift-R and Ctrl-Shift-T. The R version opens any resource that is in your project where the T version opens any type that is referenced by your project (for a java project, that could mean a type that is included in a 3rd party library).

Once you’ve mastered that, each of those search options allows you to apply Eclipse’s fuzzy search logic. For example, if you Ctrl-Shift-R for a resource called “HippopotamusHandler.java” you could start looking for it by spelling out “H”, “i”, “p”, “p”, etc.. and that would match against “Hippopotamus.java”, “HippopotamusCage.java”, “HippopotamusMeal.java”, “Hippocampus.java”, as well as “HippopotamusHandler.java”. However, if you spell out “H”, “H”, Eclipse uses fuzzy logic to find any resources that have “H” and “H” as the first 2 uppercased letters in their name, so your search would match against “HippopotamusHandler.java”, “HippopotamusHandler.java”, etc. thus greatly narrowing your choices and speeding up the search process, saving you literally 5’s of keystrokes. Holy efficiency, Batman!

Today’s tip:

Ctrl-Shift-R: opens a resource

Ctrl-Shift-T: opens a type

Posted in search | Tagged holy interplanetary yard stick | No Comments Yet

  • Archives

    • June 2008
    • December 2007
    • November 2007
  • Category Cloud

    debug editor help navigation other plugins refactoring run search

Blog at WordPress.com.

Theme: Mistylook by Sadish.