Eclipse IDE – How to search files ?

In this article, we will discuss how to search files in Eclipse IDE. Files like .java, .xml or .jsp can be easily searched using these shortcut keys

Eclipse files convention standards :

  • All files ending .java extension are grouped as Java Types
  • Whereas all other files extension like .jsp, .js, .xml, .xslt, .xsd, etc. are collectively referred as resources, which includes .java also

Shortcut commands in Eclipse IDE :

  • CTRL + SHIFT + T –> used to search all Java type files (Open Type)
  • CTRL + SHIFT + R –> used to search all types of files (Open Resource)
  • CTRL + H –> opens dialog box which provides number of options (Search)

Let’s understand each one with simple example in Eclipse IDE,

1. To find Java files

  • Step 1: press CTRL + SHIFT + T simultaneously
  • Step 2: enter Java filename to be searched
  • Step 3: Wildcards can also be used, in case if we don’t remember full name of the Java file
  • Note: starting letter of each word typed in Capital helps to find Java files
  • Like, for example, to find RemovingAllEntriesGreaterThanByComparingKeys.java file
  • To search above file, just type RAEGTBCK after pressing CTRL + SHIFT + T simultaneously

2. To find all types of resources or files

  • Step 1: press CTRL + SHIFT + R simultaneously
  • Step 2: enter any filename to be searched
  • Step 3: Wildcards can also be used, in case if we don’t remember full name of the file
  • Note: starting letter of each word typed in Capital helps to find any resource files
  • Like, for example, to find SpringApplicationContext.xml or ReadFromFileInJava.java file
  • To search above file, just type SAC or RFFIJ after pressing CTRL + SHIFT + R simultaneously

3. Searching files from Search (CTRL + H) menu

This helps to find any phrase from files

  • Step 1: press CTRL + H simultaneously
  • Step 2: Wildcards can also be used, in case if we don’t remember full name of the file along with their extensions

4. Useful Eclipse IDE shortcuts :

Related Articles:

References:

Happy Coding !!
Happy Learning !!

Eclipse IDE - How to locate methods in Java file ?
Eclipse IDE - How to generate getters and setters ?