(1) Ctrl + M switch 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 move the mouse away, the tooltip will display the show tooltip description.
F3 jumps to the declaration or definition.
F5 debug the function in one step.
F6 single-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 is returned to the call place by the function.
F8 continues until the next breakpoint.
(4) Ctrl + PG ~ For XML files, the code and graphical window are switched.
(5) CTRL + ALT + I view the variable information in the Java File
(6) Ctrl + pgup open the "show list" drop-down box for the code window. The drop-down box displays files that have been opened recently.
(7) Ctrl +/in the code window //~ Annotations.
CTRL + Shift +/This is the case in the code window /*~ */Comment, which is in the JSP file window <! --~ -->.
(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, for example, CTRL + Shift + Z. In the text service and input languages ages dialog box, delete other Chinese input methods under Chinese (PRC) and only retain the purple input method, press Ctrl + Shift + Z to switch between English and Ziguang.
CTRL + Shift + space the prompt message is context information.
(14) Ctrl + D Delete the current row.
(15) double-click the left border of the window to add a breakpoint.
(16) In the. Jap. Or. Java file, right-click "campare with" or "Replace with" to find the history of all operations.
(17) select window-show view-Navigator from the menu to bring up the navigation function window.
(18) Ctrl + 1 quick fix (the most classic shortcut, you don't need to talk about it)
Bytes ------------------------------------------------------------------------------------------------
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)
Alt + enter display the properties of the currently selected resource (project, or file)
Shift + enter insert empty rows in the next row of the current row (the mouse can be at any position of the current row, not necessarily the last row)
Shift + Ctrl + enter insert blank lines in the current line (same principle)
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 + O quick outline display
CTRL + T quickly display the inheritance structure of the current class
CTRL + W disable the current editer
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 open editer
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)
Alt + Shift + z restructured regret medicine (UNDO)
Edit related shortcuts
Bytes ------------------------------------------------------------------------------------------------
1. [Alt + /〕
Provide content assistance to users.
2. [Ctrl + O 〕
Display the outline of Chinese methods and attributes for quick positioning.
3. [Ctrl + /〕
Quickly add or uncomment a comment for the row where the cursor is located or for the selected row.
4. [Ctrl + M 〕
Window maximization and restoration.
5. [Ctrl + 1 〕
Quick correction.
View and locate shortcuts
Bytes ------------------------------------------------------------------------------------------------
1. [Ctrl + k] and [Ctrl + Shift + k 〕
Search down and up quickly.
2. [Ctrl + Shift + T 〕
Find the class that can be found in the build path.
3. [Ctrl + Shift + R 〕
Search for all files in the build path.
4. [Ctrl + Shift + G 〕
Search for reference of classes, methods, and properties.
5. [Ctrl + Shift + O 〕
Quickly generate import.
6. [Ctrl + Shift + F 〕
Format the code.
7. [Alt + Shift + W 〕
Find the path in the project where the current file is located.
8. [Ctrl + L 〕
Locate a row in the current editor.
9. [Alt + <-] and [Alt +-> 〕
Backward history and forward history.
10. [F3 〕
Quickly locates a class, method, and attribute at the cursor position.
11. [F4 〕
Displays the inheritance relationship of a class.
Debugging shortcuts
Bytes ------------------------------------------------------------------------------------------------
1. [Ctrl + Shift + B] set or cancel a breakpoint on the current line.
2. [F8] continue to run until the next breakpoint or program ends.
3. [F11] Debug the last executed program.
4. [Ctrl + F11] run the last executed program.
Others
Bytes ------------------------------------------------------------------------------------------------
1. [Ctrl + F6] and [Ctrl + Shift + F6]: switch to the next editor or the previous editor.
2. [Ctrl + F7] and [Ctrl + Shift + F7]: switch to the next view or the previous view.
3. [Ctrl + F8] and [Ctrl + Shift + F8]: switch to the next or previous perspective.
//////////////////////////////////////// //////////////////////////////////////// //////////////////
//////////////////////////////////////// //////////////////////////////////////// //////////////////
Jbuider is a good shortcut
Bytes ------------------------------------------------------------------------------------------------
CTRL + J. Its function is to quickly generate methods or expressions.
For example, you only need to press Ctrl + J to output the main function automatically.
Press Ctrl + J to automatically generate system. Out. println ("");
Key for myeclipse
Bytes ------------------------------------------------------------------------------------------------
Syso and then pressAlt +/Just come out
System. Out. println ("");
In the window on the menu bar, enter preferences. In general, there is a keys.
1: Select word completion on the right and delete the original value in the binding below. Then press Ctrl and then press "→" twice ";
2: Find content assist on the right side, delete the original value in the binding below, press ALT, and then press "/".
Set it! Now you just need to input main, press ALT, then press "/", and press Enter. The entire main function is out,
ALT and "/" have many other functions. Please try it!
Bytes ------------------------------------------------------------------------------------------------Myeclipse shortcutsBytes ------------------------------------------------------------------------------------------------
In eclipse3.3, the content assistant shortcut key is changed from Al +/to Ctrl + space, which is in conflict with the shortcut key for switching the input method of our operating system, therefore, the content assistant cannot be used, causing great inconvenience to code writing. In the previous version of eclipse 3.2, the Alt +/shortcut is used as the shortcut key for the new word competion function. So now, if you want to use Alt +/to implement the content assistant function, you need to change the eclipse3.3 shortcut key settings. The procedure is as follows:
1. Choose Windows> preferences> General> keys.
2. find word competion in the list of shortcut keys, and change its shortcut key Alt +/to another shortcut key (how to change it, delete the shortcut key first, click "Remove binding" on the right, select the binding text box, and enter the shortcut key you want ).
3. In the list of shortcut keys listed, find: Content assist and change its shortcut key Ctrl + space to the expected Alt +.
========================================================== ========================================================== ===
1. Open myeclipse 6.0.1, and then "window" → "Preferences"
2. Select "Java", expand, "Editor", and select "content assist ".
3. Select "content assist" and then see "Auto" under "auto-activation" on the right.
Activation triggers for Java "option. In fact, it refers to the "." symbol that triggers the code prompt.
4. The "Auto activation triggers for Java" option should be followed by an ABC letter after "." To facilitate subsequent search
Modify. Then, "Apply" and click "OK ".
5. Then, select "file"> "Export", select "perferences" in the pop-up window, and click "Next ".
6. Select the export file path, export it to the desktop, enter "test" as the file name, and click "save ".
7. Find the file "test. EPF" you just saved on the desktop, right-click and choose "open with Notepad ".
8. You can see a lot of information about configuring myeclipse 6.0.1.
9. Press the "Ctrl + F" shortcut key, enter ". ABC", and click "find next ".
10. Find the configuration information of ". ABC" as follows:
As follows:
11. Change ". ABC" to ". abcdefghijklmnopqrstuvwxyz (,". Save and disable "test. EPF ".
12. Go back to the myeclipse 6.0.1 interface, "file" → "import", select "perferences" in the pop-up window, and click
"Next": select the modified "test. EPF" file, click "open", and click "finish ". This step and above
The export procedure is similar. After that, you will be prompted with any letters you typed.