[Reprinted] eclipse shortcut keys

Source: Internet
Author: User

CTRL + 1
Quick Fix

CTRL + d
Delete 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 + ↓
The interaction position between the current row and the following row (especially useful, you can cut and paste it)

Alt + ↓
Interaction position between the current row and the preceding row

Alt + ↓
Previous edited page

Alt + →
Next edited page

Alt + enter
Displays the properties of the currently selected resource (project, or file)

Shift + enter
Insert a blank row into 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 null rows in the current row (same principle)

CTRL + q
Locate the Last edited location

CTRL + L
Locate in a row

CTRL + m
Maximize the current edit or view

CTRL +/
Comment the current row, and then click to cancel the comment

CTRL + O
Quick display of outline

CTRL + T
Quickly display the inheritance structure of the current class

CTRL + W
Disable the current editer

CTRL + k
Refer to the selected word to quickly locate to the next

CTRL + E
Quickly display the drop-down list of the current editer (if the current page does not show the drop-down list in bold)

CTRL +/
(Keypad) collapse all in the current classCode

CTRL + ×
(Keypad) show all the code in the current class

CTRL + Space
The Code assistant inserts some code (but it usually conflicts with the input method. You can modify the Input key, or replace it with ALT +)

CTRL + Shift + E
Displays the managers that manage all Opened Views (you can choose to disable, activate, and perform other operations)

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 especially useful when querying a word. idea 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
Disable all editer 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 to the back, the cursor should be inside the matching character, followed by the front, and vice versa)

The following shortcut keys are commonly used in refactoring (note: the shortcut 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 muddy code)

Alt + Shift + c
Modify the function structure (more practical. N functions have called this method and can be modified 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.

Alt + Shift + I
Merge variables (this may be a bit inappropriate inline)

Alt + Shift + V
Moving functions and variables

Alt + Shift + z
Reconstruction regret
From: http://blog.csdn.net/jaketseng/archive/2007/11/21/1896098.aspx

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.