Common Eclipse shortcut keys

Source: Internet
Author: User
Tags delete key

Alt+shift+r Modify Name

Ctrl+shift+r Find Source Class

Eclipse shortcut Key Features
1. "alt+/"---> Tips
This shortcut is a good helper for the user to edit, can provide users with the content of the auxiliary, do not worry about the method and the name of the property, when not the whole class, methods and attributes of the name, more experience the "alt+/" shortcut to bring the benefits of it.


2. "Ctrl+o"-Find methods and properties: Locating Methods and properties
shows an outline of the methods and properties in a class that quickly locates the methods and properties of a class and is useful for finding bugs.


3. "ctrl+/"-Add comments for: Java code
Quickly add comments, can quickly add a comment or uncomment the line of the cursor or the selected line, you may always need to annotate something or uncomment it when debugging, and now it's okay to repeat the comments on each line.


4. "Ctrl+d"---> Delete when moving forward
Delete the current line, which is also the author's favorite one, do not have to delete a row and press so many times the delete key.


5. "Ctrl+m"---> Window maximization and restore
Window maximization and restore, when the user in the window to operate, always feel that the current window is small (especially when writing code), now good, try "ctrl+m" shortcut keys.


Viewing and locating shortcut keys


In the program, quickly locate the location of the code, quickly find the place where the bug is very difficult, Eclipse provides a powerful search function, you can use the following shortcut keys to help complete the job of locating.


1. "Ctrl+k", "ctrl++shift+k"--up and down to retrieve included characters
Find the selection quickly down and up, and you no longer need to click the Find dialog box with your mouse.


2. "Ctrl+shift+t"---> Quick Find Java class
Find a Java class file in the search workspace (Workspace) build path, and do not suffer for the class being found, and you can use "*", "? "And so on wildcard characters.


3. "Ctrl+shift+r"-Quickly find all the files (pages, Java files, etc.)
As with "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 all references to this method, class, property
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"-Fast Introduction class
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. "Ctrl+shift+f"
Format code, write the code of the format specification is a compulsory lesson for every programmer, when see a piece of code is very uncomfortable, select and press "ctrl+shift+f" shortcut key can format this code, if the code is not selected the default format of the current file (Java file).


7. "Alt+shift+w"---> Find the location of the file in the working directory
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).


8. "Ctrl+l"---> Positioning line
Navigates to a row in the current editor and is also valid for non-Java files.


9. "Alt+←", "alt+→"
Backward history and forward history are useful in tracking code, and users may find several associated places, but they may not be able to remember the order in which they are located by these two shortcut keys.

Common Eclipse shortcut keys

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.