at that time, I saw struts2 to explain the video, the instructor incredibly able to comment out a few lines of code, and the comments are very neat, I was surprised, the internet searched the next MyEclipse shortcut key is really much
Select the line or lines of code that you want to annotate, press ctrl+/, uncomment it, and then press ctrl+/.
If you want to use the shortcut key for the comment, then your shortcut is ctrl+shift+/
I used to be manually annotated, direct//or comment, the code format will be destroyed
Other shortcut keys
Ctrl+m the size of the switch window
Ctrl+q jumps to the last edit place
ctrl+/is this//~ comment in the Code window.
ctrl+shift+/is this comment in the Code window, which is in the JSP file window.
Alt+shift+o (or click the Toggle Mark Occurrences button in the toolbar) when you click on a marker to make this marker yellow on the other side of the page, and the right border of the window appears with a white square, clicking this block jumps to the marker.
Ctrl+i formats the active element in format active Elements.
Ctrl+shift+f formatted file format document.
Ctrl+s Save the current file.
Ctrl+shift+s Save all unsaved files.
Ctrl+shift+f4 Close all open editer. Ctrl+w (CTRL+F4) Close the current editer
CTRL+SHIFT+M (placing the cursor on the class name of the package to be imported first) is an import statement.
The Ctrl+shift+o effect is that the missing import statement is added and the extra import statement is deleted.
Ctrl+d Delete the current row.
Ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)
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.)
Ctrl+l positioning in a row (for people with programs over 100 have the gospel)
Ctrl+t quickly displays the inheritance structure of the current class
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)
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)
Ctrl+f is used to find the variable you want to find in your editer, and you can change the name.
I think we need to learn these shortcut keys slowly.
Ctrl+shift+o
Automatically import all packages that are not imported
Ctrl+shift+m
Import of a class one class
The method of DAO (service) in the action point can be ctrl+t directly to the implementation class rather than to the interface
MyEclipse Multi-line Comment shortcut keys and other shortcut keys