takeaway
In Eclipse development, knowing certain shortcuts can make your work a lot more efficient. This article summarizes the shortcuts for Eclipse.
To the chase
Ctrl+1 Quick repair (classic shortcut keys) Ctrl+D Delete the current line Ctrl+Alt+↓ Copy the current line to the next line (copy added) Ctrl+Alt+↑ Copy the current line to the previous line (copy added) Alt+↓ Alt+↑ Interaction position between the current line and the following line (especially useful, you can omit the need to cut and paste) Alt+↑ Interaction position between the current line and the previous line (same as above) Alt+← Previous page Alt+→ next page (for the previous page of course) Alt+Enter Displays properties of the currently selected resource (project,or file,or file) Shift+Enter Inserts a blank line next to the current line (the mouse can be anywhere on the current line, not necessarily last) Shift+Ctrl+Enter inserts a blank line next to the current line (same principle) Ctrl+Q Ctrl+L To position on a line (good news for programs over 100) Ctrl+M to maximize the current Edit or View (press again and vice versa) Ctrl+/ comment on the current line, press again to uncomment Ctrl+O to quickly display OutLine Ctrl+T quickly display the inheritance structure of the current class Ctrl+W Close the current Editer Ctrl+K quickly navigate to the next Ctrl+E Quickly display the drop-down list of the current Editer (bold if not displayed on the current page) Ctrl+/ (keypad) Ctrl+Space: Ctrl+Shift+E: Ctrl+Space: Space: Space: Space: Space: Space: Space: Space: Space: Space: Space: Space: Space: Space Ctrl+J forward incremental lookup (After pressing Ctrl+J, each letter editor you type provides a quick match to locate a word, if not, in the stutes Ctrl+Shift+J Reverse incremental search Ctrl+Shift+F4 Close all open Editer Ctrl+Shift+X Change all selected text to lower case Ctrl+Shift+Y Change all selected text to lower case Ctrl+Shift+F Format the current code Ctrl+Shift+P position to the appropriate match (e.g. {}) (The cursor should be inside the card when moving from front to back, or vice versa)
The following shortcut keys are common in refactoring. I like them and use them frequently.
Alt+Shift+R Rename (my favorite, especially for variables and classes, which are much less labor intensive than manual methods) Alt+Shift+M extract (this is one of the most common methods used in refactoring, especially for large chunks of muddy code) Alt+Shift+C Alt+Shift+L Extract local variables (you can extract magic numbers and strings into a variable, especially when multiple calls are made) Alt+Shift+F Change a local variable in Class to a field variable. Alt+Shift+I merge variables Inline. Alt+Shift+V move functions and variables The Undo of Reconstruction
The editor
To view
window
navigation
search
Text editing
file
The last
This time more lazy, screenshots all uploaded, I hope to help you a little help!
Welcome everyone interested can pay attention to my public number [Java small melon brother sharing platform], the article will be updated inside, there are all kinds of Java information is free to share. Hope to work hard together with you!