The most common shortcut keys in eclipse
Friends who are familiar with eclipse must be very impressed with its shortcut keys. Many, but commonly used generally is about 10. According to the practice in the project, it is summarized as follows, a little help to some of the less familiar friends.
Ctrl + Shift + O: Import and manage Imports statements
Ctrl + Shift + T: Opens open Type find class file
Ctrl + Shift + F4: Close the window where you are opening
Ctrl + o:open declarations
Ctrl + E: Open editor (toggle window)
Ctrl +/: Note the bank
Alt + Shift + R: Rename
Alt + Shift + L: Extract local variables
Alt + Shift + M: Extraction method
F3:open Declaration
The following is the content added by netizens:
by sitinspring
Ctrl + D: Delete Bank
Ctrl + SHIFT + F: Shaping
by Gandi Feng
Ctrl + Alt +↓ (↑): Copy line down (UP)
Alt +↓ (↑): Move the bank down (UP)
Alt +. : Output Hints
Note: Personally think this shortcut is the most useful, (1) In the Java class, to output the main method, as long as the input main and then use this shortcut key to press ENTER, to output System.out.println (), you just enter SYSO and then use this shortcut to press ENTER Again, for example, if you want to overwrite the ToString () method of the parent class, you only need to enter to and then press ENTER with this shortcut; If you want to use a class that does not have an import (such as Calendar), you can simply enter the CA and use the shortcut key to select For example, if you want to generate a Get,set method for a field, you only need to enter get and use this shortcut to generate (default is public); (2) in the JSP page, you can use this prompt to enter a label (the tag attribute is indicated in the label). (3) This shortcut key is also available in XML.
by Gandi Feng
Ctrl + S: Save the file.
Other also have Ctrl + A, Z, X, C, V;shift +→;shift +←; a side-by-side here, easy to summarize the query.
By Month Bud
Alt+shift+j Adding a doc comment to a function
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Eclipse Common shortcut keys