Find a specified file in Eclipse [multiple methods]

Source: Internet
Author: User

1.ctrl+h Open the Search interface

File Search:

Containing text fill *,file name patterns fill in hello.*, can find hello for named file

Know the file type, find the login inside

2.ctrl+shift+t Find Workspace (workspace) Java class file

Note: Because you are looking for a workspace, multiple items are found when more than one class is pointed to by the mouse to see which item belongs to

Find the class file Servicevo as follows and automatically point to the class file when it is found

3.ctrl+shift+r

and "Ctrl+shift+t", find all the files in the workspace (Workspace), including the Java files, or you can use a wildcard character

4.ctrl+shift+g

Find references to classes, methods, and properties. This is a very useful shortcut key, such as to modify the code that refers to a method, you can quickly locate all references to this method by using the "ctrl+shift+g" shortcut key.

5. "Ctrl+shift+o"

Quickly generate import, when copying a program from the Internet, do not know how to import into the called class, try "ctrl+shift+o" shortcut keys, there will be surprises.

6.f3

A class, method, and property that quickly locates the cursor position.

The following Iadmindao is an interface with the cursor pointing at it and pressing F3 to quickly open the interface class

7.f4

Displays the inheritance relationship for the class and opens the Class inheritance view.

8. "Alt+shift+w"
Find the path in the project where the current file is located, and you can quickly locate the location of the browser view, which is useful if you want to find a package that contains a file (especially in larger projects).

9.ctrl+l

Navigates to a row in the current editor and is also valid for non-Java files.

For example, I want to navigate to the 108 lines of the current editor, such as the following

Find a specified file in Eclipse [multiple methods]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.