The most commonly used shortcut keys in Eclipse

The most commonly used shortcut keys in Eclipse
C trl + Shift + O : import and manage import statements in the class
Ctrl + Shift + T : Open Open Type to find class files
Ctrl + Shift + F4 : close the open window
Ctrl + O : Open declarations
Ctrl + E : open editor (switch windows)
Ctrl + / : Comment this line (single line), the symbol is //     
Ctrl+Shift+/ is also a comment (multi-line), used in .html or .jsp files (less used), the symbol is /* */       
Alt+shift+j Add documentation comments to the function (used more), the symbol is /** */
Ctrl + S : Save the file. Ctrl+Shift+S: Save all files.
Alt + Shift + L : extract local variables
Alt + Shift + M : Extract method
Ctrl + Sift + X / Y: Make the selected part uppercase/lowercase
Ctrl + F find and replace, current file only
Shift+Alt+S : Automatically generate Getter and Setter, select attributes, construct with parameters and no parameters, toString can also be generated here
Alt + "/" select input
F2 : file item duplicate name        
F3 : Open the declaration of the selected element
F4 : Open the type inheritance structure of the selected element
F5 : refresh
F11 : debug the previous application (debug)
F12 : activate the editor
Ctrl + D : delete this line Ctrl + Z : undo the last operation                                    
Ctrl+Shift+T                                                    
Ctrl + SHIFT + F : Shape alignment
Ctrl + Alt + ( ) : Copy this line down (up)
Alt + ( ) : move the line down (up)
This shortcut key is most useful. (1) In the java class, to output the main method, just enter main and press Enter with this shortcut key; to output System.out.println(), you only need to enter syso and then use Press Enter for this shortcut key; for example, if you want to override the toString() method of the parent class, you only need to enter to and then press Enter with this shortcut key; for example, you want to use a class without import (such as Calendar) , you only need to enter Ca and then use this shortcut key to select with the up and down keys; for example, if you want to generate the get and set methods of a field, you only need to enter get and then use this shortcut key to generate (the default is public); for example, ...(2) This prompt can be used in the jsp page to enter the tag (prompt tag attribute in the tag). (3) This shortcut key can also be used in xml.
Others include Ctrl + A, Z, X, C, V; Shift + ; Shift + ; are listed here for everyone to summarize and query. Ctrl+1 quick fix (the most classic shortcut

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324594677&siteId=291194637