The summary is very good, and has the corresponding usage, recommend!!! From:http://www.cnblogs.com/yanyansha/archive/2011/08/30/2159265.html the Eclipse shortcut key that the code must master
1. Ctrl + Left and F3
This is often used by most people to see the definition of variables, methods, classes
Jumps to the definition code of the identifier where the cursor is located. When reading by the execution process, F3 implements most of the navigation actions.
2 Ctrl+shift+g
Finds the location in the workspace that references the identifier where the cursor is located. Can be said to be the opposite of F3 shortcut keys. When reading by class definition, you can quickly find out which classes the current class method is calling.
3. Ctrl+o
View a schema for a class that lists its methods and member variables. Tip: If you press Ctrl+oagain, you can list the methods and variables that the class inherits.
Mnemonic: "O"---> "Outline"---> "outline"
4 F4
Open the inheritance tree. Displays the inheritance tree where the current class resides. Includes not only the parent class, but also the subclass of the current class.
5. Ctrl+t
Look at the inheritance tree of a class, which is top-down, and then press once more ctrl+t, which is replaced by a bottom-up display structure. Unlike the "F4" shortcut, it is displayed in a different way.
Tip: Select a method name and press Ctrl+t to see the parent, subclass, and interface of the method with the same name.
Mnemonic: "T"-------> "tree"-----> "Hierarchy tree"
6.alt+ left and RIGHT ARROW keys
We often encounter when looking at the code CTRL + left, layer tracking, and then lost in the code, then just press "ALT + LEFT ARROW key" can be returned to the last reading position, similarly, press "ALT + RIGHT ARROW key" will advance to just
The reading position is returned, just like the browser's forward and back buttons.
Alt+--> returns to the previous reading position. After you jump using the Find feature or navigation function, you can return to the previous reading position with the alt-left arrow and a multi-level history. Like IE's backwards. To achieve the best effect of this retreat
Rate, it is necessary to develop the habit of using it, for example, encountered a method call, with F3 opened its class file, after watching the application of alt-left ARROW to back, rather than directly close the newly opened tab. Otherwise, this newly opened tab will
Will be recorded in history and will be reopened the next time you go back here.
7.ctrl+alt+h
If you want to know how a class's methods are called by those other classes, select the method name, and then press "Ctrl+alt+h", and Eclipse will show which methods the method is called and eventually a call tree.
Mnemonic: "H"---> "Hierarchy"---> "Call hierarchy"
8 Alt+m,uOpen Super Implementation
Open the superclass method covered by the class method where the cursor is located, equivalent to the overlay method triangle mark on the left side of the mouse point in the overlay method. This feature does not have a default shortcut key, which must be windows->preferences->general->keys->modify->command->navigate in the main menu, Open Super Implementation settings, I personally used to set the Alt+m,u.
9alt+m,sShow Selected Element only
Displays only the elements of the cursor (class methods, and so on). Hides other parts of the current code, displaying the class method on which the cursor is located. I personally like this way, one screen cleaner, and the use of navigation function navigation to the class method is necessarily the top display, Sunline can force oneself to use navigation function (f3,alt+ left and right arrows) and so on navigation instead of habitually drag scroll bar. Press again to cancel this method.
This feature does not have a default shortcut key, which must be windows->preferences->general->keys->modify->command->navigate in the main menu, Open Super Implementation settings, I personally used to set the alt+m,s.
Ten Ctrl+e
A simple dialog box is displayed to accurately toggle the code-editing bar. (note do not accidentally press the CTRL+W to close the current column, you can consider canceling the ctrl+w off the current column settings, because Ctrl+w is too easy to mistakenly press. I am more accustomed to use CTRL+F4 to close the column)
11ctrl+m
Maximizes the current window. With F12 (the editing window gets the focus), you can maximize the code-editing bar right away. (F12, Ctrl+m)
12ctrl+ Keypad +-*/
Controls the collapse and expansion of the code structure. Because I personally like to use show Selected elemnt only more than the folding code, and to see the class member structure can be used outline column (shift+alt+q,o) or ctrl+o. Therefore, this function is less used. The main use is to centrally view the inline Javadoc annotation of the class method.
Open implementionIs where you can jump to the specific implementation of a method of a call. Why do you think this is super useful? People who have used spring know that they are now advocating interface-oriented programming, so if you use open declaration to track the invocation of a method, you will only see the method's declaration in the interface, but not the implementation of the method in the specific class, and of course, you can use the call Hierarchy first get the entire call level of the method, and then navigate to the specific implementation, but the operation is a bit cumbersome. With the open implemention, you can directly see the implementation of the Code, in the method name right click, choose Open implemention on it! Just to enjoy this feature, you can install an Eclipse plugin tohereCan download http://eclipse-tools.sourceforge.net/implementors/
Ctrl+shift+t
Find types within the workspace (including classes in all projects, referencing classes in jar packages). This is the quickest way to open a class by name.
Ctrl-pageup/ctrl-pagedown
Switch to previous/next tab page
Ctrl+f4 or Ctrl+w
Close the current tab page
Shift+alt+q
Open a specific column, after the shift+alt+q can be followed by a key to open the column. After you press SHIFT+ALT+Q, you will see the prompt window.
Ctrl+j
Incremental look-up. Increments the search in the current editing window. Press the arrow during lookup to jump to the next match, press the UP arrow to jump to the previous match, and press ESC to exit the incremental lookup.
Ctrl+h
Open the Find window. Opens a Find dialog box that can be set in detail. Since eclipse has a variety of navigation features, I'm less likely to use this search feature. It is mainly used to search for conditions using regular expressions. In the lookup, use Ctrl+k to find the next match.
Ctrl+shift+e
A dialog box pops up to toggle or close multiple code-editing bars.
Of course, there is the most basic, ctrl+shift+l, display the list of shortcut keys.
Go: Study the Eclipse shortcut keys that your code must master