Eclipse's most practical shortcut

Source: Internet
Author: User

1. Eclipse shortcut key settings:

"Window" → "Preferences" → General → keys→ Find content assist
Enter the shortcut key you want to set in binding, OK

(Here content assist isCodeFor example, you can set other function shortcuts in the Keys table)

 

2. Common shortcut keys:
Comment code Ctrl +/(//) or Ctrl + Shift + /(/**/)

Uncomment cancel single line comment: Ctrl +/cancel multiple lines comment: Ctrl + Shift + \

Code-assisted Alt +/(prompts related methods, etc)

Quick Fix: Ctrl + 1 (batch rename with keywords)

F3 jump class and variable Declaration

CTRL + Shift + G jump to function call

CTRL + D: Delete the current row

 

CTRL + W close a Single Window

Switch the window Ctrl + F6 <you can change it to Ctrl + tab for convenience>

Note: Some shortcut keys can be directly selected by the mouse and right-click to replace the execution.

 

4. 10 most useful shortcut keys in eclipse

1. CTRL + Shift + R: Open the resource
2. CTRL + O: Quick outline
3. CTRL + E: Quick Switch to the editor window
4. CTRL + 2, L: assign values to local variables
5. Alt + Shift + R: Rename
6. Alt + Shift + L and ALT + Shift + M: extract local variables and Methods
7. Shift + enter and CTRL + Shift + enter
8. Alt + direction keys
9. CTRL + m
10. CTRL +. And Ctrl + 1: Next error and quick Modification

 

Other common shortcut keys:

CTRL + D: Delete the current row
CTRL + Shift + x change all selected text to lowercase
CTRL + Shift + y change all selected text to lowercase
CTRL + Left click to listSource codeLink Function

 

Left arrow or Alt + Left (direction key <--) on the toolbar: return the call position.

 

Global content assist Alt +/
Home key, the cursor locates at the beginning; end key, the cursor locates at the end.

 

Q: What is the shortcut key for selecting a row in eclipse?
A: "home" or "end" Jump to the beginning or end of the line. Shift + end or SHIFT + home select a row, or press the left button three times.

 

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.