Eclipse shortcut key (1)

Source: Internet
Author: User

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)
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 (ProgramMore than 100 of people have the Gospel)
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)

Alt +/
CodeThe assistant inserts some code.

CTRL + Shift + e display the manager that manages all currently Opened Views (you can
Select disable, activate, and so on)
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 displayed in stutes line
I can't find it. It is especially useful when I look up a word. This function was available two years ago)

CTRL + Shift + F4 close all open editer
CTRL + Shift + x convert all selected text to uppercase
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, {}) (after positioning from the front
When the face, the cursor must be inside the match character, followed by the front, and vice versa)



The following shortcut keys are commonly used in refactoring. (Note: generally, the shortcut keys for refactoring start with
Alt + shift)
Alt + Shift + R Rename (one of my favorite, in particular, the rename of variables and classes can save a lot of labor compared with the manual method)
Alt + Shift + M extraction method (this is one of the most common methods in refactoring, especially useful for a lot of muddy 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: Change the local variable in the class to the field variable (more practical)
Alt + Shift + I merge the variables (this may be a bit inappropriate)
Alt + Shift + V mobile functions and variables (not commonly used)
undo

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.