Eclipse commonly used shortcut keys

  1. Declaration of completion code: alt + /
  2. Quick fix: ctrl + 1
  3. Batch guide package: ctrl + shift + o
  4. Use single-line comments: ctrl + /
  5. Use multi-line comments: ctrl + shift + /
  6. Cancel multi-line comments: ctrl + shift + \
  7. Copy the code of the specified line: ctrl + alt + down or ctrl + alt + up
  8. Delete the specified line of code: ctrl + d
  9. Move the code up or down : alt + up or alt + down
  10. Switch to the next line of code space: shift + enter
  11. Switch to the previous line of code: ctrl + shift + enter
  12. View the source code: ctrl + select the specified structure or ctrl + shift + t
  13. Return to the previous edit page: alt + left
  14. Go to the next edit page: alt + right
  15. The cursor selects the specified class to view the inheritance tree structure: ctrl + t
  16. Format code: ctrl + shift + f
  17. Select a few lines and move backwards as a whole: tab
  18. Select several lines and move forward as a whole: shift + tab
  19. In the current class, display the class structure, and support the search for specified methods, attributes, etc .: ctrl + o
  20. Batch modify the specified variable name, method name, class name, etc .: alt + shift + r
  21. Switch the capitalization of the selected structure to uppercase: ctrl + shift + x
  22. Switch the case of the selected structure to lower case: ctrl + shift + y
  23. Bring up structures such as getter / setter / constructor: alt + shift + s
  24. Display the attributes of the currently selected resource: alt + enter
  25. Quick search, refer to the selected Word to quickly locate the next one: ctrl + k
  26. Close the current window: ctrl + w
  27. Close all windows: ctrl + shift + w
  28. See where the specified structure has been used: ctrl + alt + g
  29. Find and replace: ctrl + f
  30. Maximize the current View: ctrl + m
  31. Go directly to the first position of the current line: home
  32. Directly locate to the end of the current line: end
Published 5 original articles · praised 0 · visits 53

Guess you like

Origin blog.csdn.net/za_zhi/article/details/105568243