A summary of Eclipse usage tips

Source: Internet
Author: User

Introduction: Since learning Java, has been using eclipse, this IDE by the vast number of novice and Daniel Love. Learn how to use the skills, the more the more proficient, the development will be faster and more convenient. Speak not more, directly on the summary bar. First, shortcut keys

1, Hint: a|t+/

2. Format: ctrl+shift+f

3. Automatic Guide Pack: Ctrl+shift+o

4, enter a pair of symbols, such as "", (), will be automatic completion, input after jumping: tab

5. Find out who is calling a method: Select the method name, Ctrl+shift+g

6. View the inheritance relationship for a class: Select the class, Ctrl+t

7. Find the class or file by file name: Ctrl+shift+r

8, ALT + up/down, move current line to top or bottom

9, ctrl+alt+ up/down, copy current line to top or bottom

10, Comment: ctrl+/line comment, shift+ctrl+/block comment

11, method or class name upper input:/** and then enter, will automatically generate document comments

12, Ctrl+d Delete when the forward

13, check the method name, click F2, prompt method information

Second, set

1. Shortcut keys add a set, get method, override or implement a method of the interface: Shift+alt+s

2, Version control: project name or file name, right-click

Click File name, right-->team->show history:

Version control update when an error occurs, you can modify the current local version of the file to the left by compare with, making sure that your code exists and that the other code is the same on the server. For completely overwritten, use get contents.

3. Maven

Settings for Maven

Use of Maven

Update Dependencise is capable of updating jar package dependencies:

Enter the name of the jar package and automatically retrieve it for you

Jar packages in the Reindexmaven library

4. Set the font

5. Set the encoding of the entire tool

6. Configure project output file address, add local jar package, etc.

Configure Build Path

7. Automatic compilation

8, Junit-test

I think this is more useful than idea, you can directly select the method name to test, right-click Run as to

A summary of Eclipse usage tips

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.