Common shortcut keys in eclipse

Source: Internet
Author: User

Quick fix

Command+1

int a=100l;

int a= (int) 100L;

Quick Delete Line

Command+d

start a new line quickly

Shift+enter (when the bank code is very long, the cursor is positioned anywhere in the bank, using this shortcut to quickly reach the beginning of the new line)

Quickly place your cursor in the correct format

Tab key to quickly place the cursor in the correct format when the cursor is at the beginning of the line

Run a project quickly

(fn+) Command+f11

System.out.println ("Run2");

Fast Moving Code (can be multiple lines)

ALT + up and down arrows

Quick Copy Code

command+alt+ up and down arrows

Quick Notes

command+/

Multi-line comments or methods list parameter comments

Enter "/**" + carriage return

Enlarge Current Workspace window

Ctrl+m

Fast Code Completion

alt+/

such as: Enter "syso" and then use "alt+/", you can enter the code as "System.out.println ();"

Code hints:

Another practical technique for Code AutoComplete: Code Area Right-click->preferences->java->editor->content Assist:

Find auto activation triggers for Java: The default setting is a point ".", you can add 26 letters to the back so that you trigger a prompt when you enter any letter.

for tips on all shortcuts , see eclipse-> preferences->keys

Common shortcut keys in eclipse

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.