Eclipse Shortcut Key Grooming

Source: Internet
Author: User

Eclipse's editing capabilities are powerful, and mastering the Eclipse shortcut key capabilities can greatly improve development efficiency.    There are some shortcut keys for editing related to the following in eclipse. 1. "alt+/" This shortcut for the user to edit the good helper, can provide users with the content of the assistant, 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 of "alt+/" shortcut key advantages of it.
2. "Ctrl+o" shows the outline of methods and properties in a class, which can locate the methods and properties of a class at high speed, and is useful when looking for bugs.
3. "ctrl+/" high-speed join gaze, can be the cursor row or selected line to join the gaze or cancel the gaze, in the debugging may always need to gaze at something or cancel the gaze, now good, do not need each line of repeated gaze.
4. "Ctrl+d" Delete the current line, which is also the author's favorite one, not to delete a row and press so many times the delete key.
5. The "ctrl+m" form is maximized and restored, and when the user is working on a form, the current form is always considered small (especially when writing code), and now, try the "ctrl+m" shortcut.
Viewing and locating shortcut keys
In the program, quickly locate the location of the code, high-speed to find where the bug is very easy to do, Eclipse provides a powerful search function, can use such as the following shortcut keys to help complete the search for positioning work.
1. "Ctrl+k", "ctrl++shift+k" high-speed down and up to find the selected content, no longer need to use the mouse to click the Find dialog box.
2. The Java class file can be found in the "Ctrl+shift+t" lookup workspace (Workspace) build path, do not suffer for the class being found, and can use "*", "? "And so on wildcard characters.
3. "Ctrl+shift+r" and "ctrl+shift+t" corresponding, find all the files in the workspace (Workspace) (including Java files), you can also use wildcard characters.
4. "Ctrl+shift+g" finds references to classes, methods, and properties. This is a useful shortcut key, such as changing the code that refers to a method, the ability to quickly locate all references to this method through the "ctrl+shift+g" shortcut key.
5. "Ctrl+shift+o" high-speed generation 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 necessary lesson for each program ape, when you see a piece of code is very uncomfortable, select and press "ctrl+shift+f" shortcut key to format this piece of code, Assuming that no code is selected, the current file (Java file) is formatted by default.
7. "Alt+shift+w" locates the path in the project where the current file is located, it is very useful to find the location of the browser view at high speed (especially in larger projects) when it is assumed that a file is located in the same package.
8. "Ctrl+l" is positioned to a row in the current editor and is also valid for non-Java files.
9. "Alt+←", "alt+→" back history and forward history, when tracking code is very useful, the user may find several related places, but it may not be clear that the two shortcut keys to locate the order of lookups.
10. "F3" a class, method, and property that positions the cursor at high speed.
11. "F4" displays the inheritance relationship of the class and opens the Class inheritance view.
debugging shortcut keys
There are several shortcut keys in eclipse that are related to debugging, such as the following.
1. "Ctrl+shift+b": Sets a breakpoint at the current line or cancels the set breakpoint.    2. "F11": Debug the last running program.    3. "CTRL+F11": Executes the last executed program.    4. "F5": Trace to the method, when the program runs to a method, you can press "F5" key tracking into the method.    5. "F6": Single Step to run the program.    6. "F7": After running the method, return to the next statement that called this method. 7. "F8": Continue to run, to the next breakpoint or end of the program.
Frequent use of editor shortcut keys
Usually the text editor provides some shortcut keys related to editing, which are also available for text editing in Eclipse.    1. "Ctrl + C": Copy.    2. "Ctrl+x": Cut.    3. "Ctrl + V": Paste.    4. "Ctrl+s": Save the file.    5. "Ctrl + Z": Undo.    6. "Ctrl+y": repeated. 7. "Ctrl+f": Find.
Other shortcut keys
There are a number of shortcuts in eclipse that cannot be enumerated, and users can find ways to use them through the Help document, plus a couple of frequently used shortcut keys such as the following.    1. "Ctrl+f6": Switch to the next editor.    2. "Ctrl+shift+f6": Switch to the previous editor.    3. "CTRL+F7": Switch to the next view.    4. "CTRL+SHIFT+F7": Switch to the previous view.    5. "Ctrl+f8": Switch to the next perspective. 6. "Ctrl+shift+f8": Switch to the previous perspective.
There are more shortcut keys in Eclipse, which can be used to find all the shortcuts through the Help document, but it is not possible to master the use of all the shortcuts, and it is not necessary to take the time to familiarize yourself with the shortcuts listed in this section.

Eclipse Shortcut Key Grooming

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.