"If the work is good, its prerequisite", thanks to eclipse, she makes it easier for us to read the code for a big project, and in the process of reading, I find that mastering several of Eclipse's shortcuts will make the reading experience smoother, write out to share with gentlemen, and welcome to add.
1. Ctrl + Left button
This is often used by most people to see the definition of variables, methods, classes
2. Ctrl+o
View a schema for a class that lists its methods and member variables. Tip: If you press Ctrl+o again, you can list the methods and variables that the class inherits.
Mnemonic: "O"---> "Outline"---> "outline"
3. 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.
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"
4.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 only need to press "ALT + LEFT ARROW key" can be returned to the last reading position, similarly, press "ALT + RIGHT ARROW key" will advance to just return to the reading position, just like the browser forward and Back button.
5.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.
Ctrl+d: Delete When moving forward
Ctrl+alt+↓ Copy the current row to the next row (replication incremented)
Ctrl+alt+↑ Copy the current line to the previous row (replication incremented)
Alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)
Alt+↑ the current line and the upper row interaction position (IBID.)
alt+← the previous edited page
alt+→ next Edit page (of course, for the above article)
Alt+enter displays the properties of the currently selected resource (project, or file or file)
Shift+enter inserts a blank row on the next line of the current row (at which point the mouse can be at any position in the current row, not necessarily the last)
Shift+ctrl+enter Insert blank line in current line (principle above)
Ctrl+q positioning to the last edited place
Ctrl+l positioning in a row (for people with programs over 100 have the gospel)
Ctrl+m maximize the current edit or view (and vice versa)
ctrl+/comment on the current line, and then uncomment it
Ctrl+o Quick Display OutLine
Ctrl+t quickly displays the inheritance structure of the current class
Ctrl+w Closing the current editer
Ctrl+k the selected word quickly navigates to the next
Ctrl+e quick display of the current Editer drop-down list (in bold if the current page does not appear)
ctrl+/(numpad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
Ctrl+space Code Helper to complete the insertion of some code (but the general and IME conflict, you can modify the input method hotkey, you can also take up alt+/to replace)
Ctrl+shift+e Display manager that manages all of the currently open view (you can choose to close, activate, and so on)
Ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a word, if not, it is not found in the Stutes line, check a word, especially useful, this function idea two years ago)
CTRL+SHIFT+J Reverse incremental lookup (same as above, except forward)
Ctrl+shift+f4 Close all open editer
Ctrl+shift+x the text that is currently selected is all stale lowercase
Ctrl+shift+y turns the currently selected text to lowercase
Ctrl+shift+f formatting of the current code
Ctrl+shift+p position to the match (for example {}) (after locating from the front, the cursor is in the match, back to front, or vice versa)
The following shortcut keys are commonly used in refactoring, I like and commonly used to tidy up (note: General refactoring of the shortcut keys are alt+shift beginning of the)
Alt+shift+r rename (is my own favorite, especially the variables and classes of rename, than the manual method can save a lot of labor)
Alt+shift+m Extraction Method (This is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes)
Alt+shift+c Modify the function structure (more practical, there are n functions called this method, modified once done)
Alt+shift+l extract Local variables (you can directly extract some magical numbers and strings into a variable, especially when multiple calls are made)
Alt+shift+f change the local variable in class to a field variable (more useful function)
Alt+shift+i Merge variables (this may be a bit inappropriate inline)
ALT+SHIFT+V moving functions and variables (not commonly used)
Alt+shift+z reconstruction of Regret medicine (Undo)
Ctrl+shift+u A list query that is very similar to the UE after selecting the selected text
Ctrl+alt+h View the hierarchy of relationships in which a function is called by another function
Contact the author of this article to exchange or request the relevant code and software please join QQ Group: Pony Brother technology sharing 413939157.
Several must-know shortcuts for using Eclipse (capacity Workshop Pony Collection)