Eclipse shortcut keys Daquan

1. Hint: Alt+/

2. Format: ctrl+shift+f

3. Enter a pair of symbols, such as "", (), it will be automatically completed, and it will jump out after entering: tab

4. Find who calls a method: select the method name, ctrl+shift+g

5. View the inheritance relationship of a class: select the class, ctrl+t

6. Find a class or file by file name: ctrl+shift+r

7. alt+up/down, move the current line up or down

8. ctrl+alt+up/down, copy the current line to the upper or lower

9. Comments: ctrl+/line comment, shift+ctrl+/block comment

10. Enter the upper part of the method or class name: /** and press Enter, the documentation comment will be automatically generated

11. ctrl+d delete the current line

12. Select the method name and click F2 to prompt the method information

13. Prompt error, etc.

2. Setting

1. Add set and get methods to shortcut keys, override or implement a method of the interface: shift+alt+s

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

Click on the file name, right-click->team->show history:

When there is an error in the version control update, you can use compare with to modify the current local version file on the left. After modification, ensure that your own code exists, and other codes are the same as those on the server. For completely need to be overwritten, use get contents.

3、maven

maven settings

maven uses:

update dependency can update jar package dependencies

maven add dependencies:

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

jar package in reindexmaven library

4. Set the font

5. Set the encoding of the entire tool

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

configure build path

7. Automatic compilation

8、junit-test

I think this is easier to use than idea, you can directly select the method name to be tested, right-click to run as

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325580494&siteId=291194637