(i) common Eclipse shortcut keys
(1) Ctrl + left mouse button
Used to view the definitions 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) ctrl+/
Comment on the current line, and then cancel the comment
Attention:
The shortcut key is not valid when editing an XML file.
Eclipse XML Comment: CTRL + SHIFT +/
Undo Comment: CTRL + SHIFT + \
(5) Ctrl+shift+f formatting of the current code
Eclipse Usage Tips