Use of shortcut keys in eclipse

Source: Internet
Author: User

Eclipse use of shortcut keys in

    1. New CTRL + N

This shortcut is simply a must-have for B,

A.java P Build Project

B.PA Build Package

C CL Build Class

So you can create projct,package,class completely without a mouse, is not very loaded B

2: Formatted CTRL+SHIFT+F

After formatting

Formatting is simply a clutter helper, note that formatting does not format two lines in the middle of a blank line.

3. Import Package Ctrl+shift+o 4. Comment ctrl+/(single line comment and cancel), ctrl+shift+/(multiline comment), ctrl+shift+\ (cancel multiline comment)

Note: Multiple lines of comments need to select the desired comment line, first pressCtrl+shiftThen press/5. Move the code up or down the selected code ALT + up/down arrows

6. Check the source code selected class name (F3 or Ctrl + mouse click )

7. Find the specific class Ctrl + SHIFT + T, enter the name of the class you are looking for -- OK

8. Find the specific method of the specific class CTRL + O9. To suggest ctrl+1, generate a method (the most common for this shortcut) by generating the left data type on the right side 10. Remove the code CTRL + D11. Extraction method ALT + SHIFT + M

A, pay attention to the need to select the complete method body otherwise will error

B , establish the method name

C , after extracting the method

12. Rename ALT + SHIFT + R (class name, method name, variable name)

Use of 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.