Summary of the most commonly used shortcut keys in the development of Eclipse/myeclipse

Source: Internet
Author: User

1. Format code: CTRL+SHIFT+F;

2. Automatically generate Get/set method: Shifi+alt+s+r (press space is selected).

3. Auto-Generate ToString Method: Shifi+alt+s+s (press space is selected).

4. Automatic generation of construction method: Shifi+alt+s+o (Press the space is selected).

5. Content Association complete: alt+/.

6. Error locating errors, same as clicking the "red X" Effect: ctrl+1.

7. Auto-Import Package: Ctrl+shift+o.

8. Automatically generate "Hashcode" and "equals" method: Shift+alt+s+h.

9. Copy the current line: ctrl+alt+ up/Down key.

10. How to quickly get the fully qualified name of a class: Select the class to get, and right-select Copy qualified name.

11. How to quickly generate "test class" For a class: Select the class to get, and right-select the JUnit test case.

12. How to select the current line code: First Press "End" to go to the end of the line, and then press "Shift+home" to select the line code.

13. View Source code: CTRL+SHIFT+T or CTRL + click Source code.

14. New types: Shift+alt+n.

15. Select the code to the left of the current cursor: ctrl+shift+ left-click.

16. View the source code for the selected class: F3.

17. Rename: F2.

18. Rename the variable in the code: ALT+SHIFT+R.

19. "Original path return" When viewing source code: ALT + left.

20. Change lowercase to uppercase: ctrl+shift+x.

21. Change the capitalization to lowercase: ctrl+shift+y.

22. Add or revoke the current line comment: ctrl+/.

23. Run the program shortcut key: Ctrl+f11.

24. Add a segment comment to the selected code block: ctrl+shift+/.

25. Withdrawal section Comment: ctrl+shift+\.

26. Move the current code up/down: ALT + up/down key.

27. Delete the current line: Ctrl+d.

28. View the inherited structure of the selected class: Ctrl+t.

29. Find a class based on a prefix or suffix: ctrl+shift+t

Summary of the most commonly used shortcut keys in the development of Eclipse/myeclipse

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.