Java Eclipse and MyEclipse shortcuts, eclipsemyeclipse
Shortcut Keys for Eclipse and MyEclipse
(1) Ctrl + M -- switch the window size
(2) Ctrl + Q -- jump to the last editing position
(3) F2 -- when you place the cursor on a tag and press F2 to display the Tooltip Description.
F3 -- jump to the declaration or definition.
F5 -- debug the function in one step.
F6 -- one-step debugging does not enter the function. If Kingsoft 2006 is installed, you need to change the shortcut key of "word acquisition switch" to another one.
F7 -- the function returns to the calling place.
F8 -- run until the next breakpoint.
(4) Ctrl + Pg ~ -- For XML files, the code and graphical window are switched.
(5) Ctrl + Alt + I -- View information about variables in the Java File
(6) Ctrl + PgUp -- for the code window, open the "Show List" drop-down box, where there are recently opened files.
(7) Ctrl +/-- this is the case in the code window //~ Annotations. (Cancel/Add) single line comment
Ctrl + Shift +/-- this is the case in the code window /*~ */Comment. In the JSP file window, it is <〈! --~ --> --〉. Multi-line comment
Ctrl + Shift + \--cancel multi-line comment
(8) Alt + Shift + O (or click the Toggle Mark Occurrences button in the toolbar) When you click a tag, the tag is highlighted in yellow elsewhere on the page, and the right border of the window will show a white square, click this square will jump to this mark.
(9) Right-click the left border of the window and select Show Line Numbers where the breakpoint is added to add a row number.
(10) Ctrl + I Format the activated element Format Active Elements.
Ctrl + Shift + F Format the file Format Document.
(11) Ctrl + S Save the current file.
Ctrl + Shift + S save all unsaved files.
(12) Ctrl + Shift + M (place the cursor on the class name of the package to be imported first) is to add the Import Statement.
Ctrl + Shift + O is used to add missing Import statements and delete unnecessary Import statements.
(13) Ctrl + Space indicates that the entered Content is Content Assist. In this case, the shortcut key of Chinese (Simplified) IME-Ime/Nonlme Toggle in the input method is used to switch between English and other texts) change to another one.
Ctrl + Shift + Space the prompt message is Context Information.
(14) double-click the left border of the window to add a breakpoint.
(15) Ctrl + D Delete the current row.
--- To be continued
Eclipse shortcut keys (details)
Ctrl + 1 quick fix (the most classic shortcut, you don't need to talk about it)
Ctrl + D: Delete the current row
Ctrl + Alt + ↓ copy the current row to the next row (copy added)
Ctrl + Alt + ↓ copy the current row to the previous row (copy added)
Alt + ↓ interaction position between the current row and the following row (especially practical, you can save cutting and pasting)
Alt + ↑ interaction between the current row and the previous row (same as above)
Alt + ↓ previous edited page
Alt + → next edited page (of course for the above)
Ctrl + Q locate the Last edited location
Ctrl + L locate in a line (for those with more than 100 programs, there will be good news)
Ctrl + M maximize the current Edit or View (then press it, and vice versa)
Ctrl +/comment out the current row, and then press it to cancel the comment
Ctrl + Shift +/-- Multi-line comment
Ctrl + Shift + \--cancel multi-line comment
Ctrl + O quick display
Ctrl + T quickly display the inheritance structure of the current class
Ctrl + W close current
Ctrl + K quickly locate to the next one by referencing the selected Word
Ctrl + E: Click it to quickly display the drop-down list of the current Editer (if the current page is not displayed, it is displayed in bold)
Ctrl +/(keypad) collapse all code in the current class
Ctrl + * (keypad) show all the code in the current class
Ctrl + Space Code assistant inserts some code (but it is usually in conflict with the input method. You can modify the key of the input method or replace it with Alt +/for the moment)
Ctrl + Shift + E display the managers that manage all Opened Views (you can choose to close or activate them)
Ctrl + J forward incremental search (after pressing Ctrl + J, each letter editor you enter provides a quick match to locate a word. If not, it is not found in stutes line. It is particularly useful when querying a word. This function was available two years ago)
Ctrl + Shift + J reverse incremental search (the same as the previous one, but only from the back to the front)
Ctrl + Shift + F4 close all Enabled
Ctrl + Shift + X change all selected text to lowercase
Ctrl + Shift + Y change all selected text to lowercase
Ctrl + Shift + F format the current Code
Ctrl + Shift + P locate the matched character (for example, {}) (when positioning from the front, the cursor must be inside the matched character, followed by the front, and vice versa)
The following shortcut keys are commonly used in refactoring. I like them and want to sort them out frequently (note: the keys for refactoring generally start with Alt + Shift)
Alt + Shift + R Rename (one of my favorite ones, especially the Rename of variables and classes, which saves a lot of labor compared with manual methods)
Alt + Shift + M extraction method (this is one of the most common methods in refactoring, especially useful for a lot of mud code)
Alt + Shift + C modify the function structure (more practical. N functions call this method and modify it once)
Alt + Shift + L extract local variables (you can directly extract some magic numbers and strings into one variable, especially when multiple calls are performed)
Alt + Shift + F convert the local variable in the Class to the field variable (more practical)
Alt + Shift + I merge variables (this may be a bit inappropriate Inline)
Alt + Shift + V moving functions and variables (not commonly used)
(C) cats in the room. All rights reserved.
Https://www.cnblogs.com/lsy131479/
If you need to reprint it, please indicate the source !!!
Alt + Shift + Z restructured regret medicine (Undo)