Home  >  Article  >  Java  >  Share a complete list of Eclipse and MyEclipse shortcut keys

Share a complete list of Eclipse and MyEclipse shortcut keys

零下一度
零下一度Original
2017-07-21 16:06:081697browse

(1) Ctrl+M - Switch the size of the window
(2) Ctrl + Q - Jump to the last editing location
(3) F2 - When the Tooltip appears when the mouse is placed on a mark, press F2 When the mouse is moved away, the Tooltip will also display Show Tooltip Description.
F3——Jump to the declaration or definition.
F5——Single-step debugging into the function.
F6 - Single-step debugging does not enter the inside of the function. If Kingsoft PowerWord 2006 is installed, the shortcut key of "Word Fetching Switch" must be changed to something else.
F7——Return from inside the function to the calling place.
F8 - Execute until the next breakpoint.
(4) Ctrl+Pg~ - For XML files, it is to switch the code and icon windows.
(5) Ctrl+Alt+I - See relevant information about variables in Java files.
(6) Ctrl+PgUp - For code The window opens the "Show List" drop-down box, which displays the recently opened files
(7) Ctrl+/ - This is the //~ comment in the code window.
Ctrl+Shift+/ - This is the /*~*/ comment in the code window, and it is 〈!--~--〉 in the JSP file window.
(8) Alt+Shift+O (or click the Toggle Mark Occurrences button in the toolbar) When clicking a mark, the mark elsewhere on this page will be highlighted in yellow, and a white square will appear on the right border of the window , clicking this square will jump to this mark.
(9) Right-click the left border of the window where the breakpoint is added and select Show Line Numbers to add line numbers.
(10) Ctrl+I formats the active elements Format Active Elements.
Ctrl+Shift+F Format Document.
(11) Ctrl+S save the current file.
Ctrl+Shift+S save all unsaved files.
(12) Ctrl+Shift+M (first place the cursor on the class name of the package to be imported) The function is to add the Import statement.
The function of Ctrl+Shift+O is that the missing Import statements are added and the redundant Import statements are deleted.
(13) Ctrl+Space prompts you to type content, which is Content Assist. At this time, you need to change the Chinese (Simplified) IME-Ime/Nonlme Toggle shortcut key (used to switch between English and other texts) in the input method to something else.
Ctrl+Shift+Space prompt information is Context Information.
(14) Double-click the left border of the window to add a breakpoint.
(15) Ctrl+D deletes the current line.
[The following is reprinted]
Eclipse shortcut key list
Ctrl+1 quick fix (the most classic shortcut key, needless to say)
Ctrl+D: Delete the current line
Ctrl+Alt+↓ Copy the current line to the next line ( Copy and add)
Ctrl+Alt+↑ Copy the current line to the previous line (copy and add)

Alt+↓ The interactive position of the current line and the line below (especially practical, you can save the need to cut and then paste)
Alt+↑ The current line and The interactive position of the above line (same as above)
Alt+← The previous editing page
Alt+→ The next editing page (of course, for the above one)

Alt+Enter displays the currently selected resource (project, or file or file ) property

Shift+Enter inserts a blank line in the next line of the current line (the mouse can be at any position of the current line, not necessarily the last)
Shift+Ctrl+Enter inserts a blank line in the current line (the principle is the same as above) bar)

Ctrl+Q locates the last edited place
Ctrl+L locates on a certain line (good news for people with more than 100 programs)
Ctrl+M maximizes the current Edit or View (press again to do the opposite)
Ctrl+/ Comment the current line, press again to cancel the comment
Ctrl+O Quickly display OutLine
Ctrl+T Quickly display the inheritance structure of the current class
Ctrl+W Close the current Editor
Ctrl+K Quickly navigate to the next one by referring to the selected Word
Ctrl+E quickly displays the current Editor's drop-down list (if the current page is not displayed, it is indicated in bold)
Ctrl+/(small keyboard) collapses all the code in the current class
Ctrl+×(small keyboard) expands all the code in the current class
Ctrl+Space code assistant completes the insertion of some codes (but generally conflicts with the input method, you can modify the hotkey of the input method, or temporarily use Alt+/ instead)
Ctrl+Shift+E displays and manages all currently opened View manager (you can choose to close, activate, etc.)
Ctrl+J forward incremental search (after pressing Ctrl+J, the editor provides quick matching to locate a certain word for each letter you enter. If If not, it will show that it is not found in the stutes line. It is particularly useful when searching for a word. Idea had this function two years ago)
Ctrl+Shift+J reverse incremental search (same as the previous article, except Check from back to front)
Ctrl+Shift+F4 Close all open Editors
Ctrl+Shift+X Change all currently selected text to lowercase

Ctrl+Shift+Y Change all currently selected text to lowercase

Ctrl +Shift+F format the current code

Ctrl+Shift+P locate the corresponding matching character (such as {}) (when positioning from the front to the back, the cursor should be inside the matching character, from the back to the front, and vice versa)

below The shortcut keys are commonly used in refactoring. I have sorted out the ones I like and commonly use (Note: Generally, the shortcut keys for refactoring start with Alt+Shift)
Alt+Shift+L extracts local variables (you can directly Some magic numbers and strings are extracted into a variable, especially when called in multiple places)

Alt+Shift+F changes the local variables in Class into field variables (a more practical function)
Alt+Shift+R Rename (This is my favorite one, especially the Rename of variables and classes, which can save a lot of labor than manual methods)
Alt+Shift+M Extraction method (this is one of the most commonly used methods in refactoring, especially useful for a lot of muddy code)
Alt+Shift+C Modifies the function structure (more practical, there are N function calls After this method, you can modify it once) Alt+Shift+I Merge variables (maybe it’s a bit inappropriate to say Inline)
Alt+Shift+V Move functions and variables (not very commonly used)
Alt+Shift+Z The regret medicine for reconstruction ( Undo)

The above is the detailed content of Share a complete list of Eclipse and MyEclipse shortcut keys. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn