Eclipse中的常用快捷键(Common shortcuts in eclipse)

Eclipse中的快捷键:

  • 1.补全代码的声明:alt + /
  • 2.快速修复: ctrl + 1
  • 3.批量导包:ctrl + shift + o
  • 4.使用单行注释:ctrl + /
  • 5.使用多行注释: ctrl + shift + /
  • 6.取消多行注释:ctrl + shift + \
  • 7.复制指定行的代码:ctrl + alt + down 或 ctrl + alt + up
  • 8.删除指定行的代码:ctrl + d
  • 9.上下移动代码:alt + up 或 alt + down
  • 10.切换到下一行代码空位:shift + enter
  • 11.切换到上一行代码空位:ctrl + shift + enter
  • 12.如何查看源码:ctrl + 选中指定的结构 或 ctrl + shift + t
  • 13.退回到前一个编辑的页面:alt + left
  • 14.进入到下一个编辑的页面(针对于上面那条来说的):alt + right
  • 15.光标选中指定的类,查看继承树结构:ctrl + t
  • 16.复制代码: ctrl + c
  • 17.撤销: ctrl + z
  • 18.反撤销: ctrl + y
  • 19.剪切:ctrl + x
  • 20.粘贴:ctrl + v
  • 21.保存: ctrl + s
  • 22.全选:ctrl + a
  • 23.格式化代码: ctrl + shift + f
  • 24.选中数行,整体往后移动:tab
  • 25.选中数行,整体往前移动:shift + tab
  • 26.在当前类中,显示类结构,并支持搜索指定的方法、属性等:ctrl + o
  • 27.批量修改指定的变量名、方法名、类名等:alt + shift + r
  • 28.选中的结构的大小写的切换:变成大写: ctrl + shift + x
  • 29.选中的结构的大小写的切换:变成小写:ctrl + shift + y
  • 30.调出生成getter/setter/构造器等结构: alt + shift + s
  • 31.显示当前选择资源(工程 or 文件)的属性:alt + enter
  • 32.快速查找:参照选中的Word快速定位到下一个 :ctrl + k
  • 33.关闭当前窗口:ctrl + w
  • 34.关闭所有的窗口:ctrl + shift + w
  • 35.查看指定的结构使用过的地方:ctrl + alt + g
  • 36.查找与替换:ctrl + f
  • 37.最大化当前的View:ctrl + m
  • 38.直接定位到当前行的首位:home
  • 39.直接定位到当前行的末位:end
————————

Shortcut keys in Eclipse:

  • 1. Declaration of completion code: Alt +/
  • 2. Quick repair: Ctrl + 1
  • 3.批量导包:ctrl + shift + o
  • 4. Use single line comment: Ctrl +/
  • 5. Use multiline comments: Ctrl + Shift +/
  • 6. Cancel multiline comment: Ctrl + Shift +\
  • 7.复制指定行的代码:ctrl + alt + down 或 ctrl + alt + up
  • 8. Delete the code of the specified line: Ctrl + D
  • 9.上下移动代码:alt + up 或 alt + down
  • 10. Switch to the next line of code space: Shift + ENTER
  • 11. Switch to the code space in the previous line: Ctrl + Shift + enter
  • 12. How to view the source code: Ctrl + select the specified structure or Ctrl + Shift + t
  • 13. Return to the previous edited page: Alt + left
  • 14. Go to the next editing page (for the above one): Alt + right
  • 15. Select the specified class and view the inheritance tree structure: Ctrl + t
  • 16. Copy code: Ctrl + C
  • 17. Undo: Ctrl + Z
  • 18. Cancel revocation: Ctrl + y
  • 19. Cut: Ctrl + X
  • 20. Paste: Ctrl + V
  • 21. Save: Ctrl + S
  • 22. Select all: Ctrl + A
  • 23.格式化代码: ctrl + shift + f
  • 24. Select several rows and move back as a whole: tab
  • 25. Select several rows and move forward as a whole: Shift + Tab
  • 26. In the current class, the class structure is displayed, and the search for specified methods and attributes is supported: Ctrl + o
  • 27. Batch modify the specified variable name, method name, class name, etc.: Alt + Shift + R
  • 28. Case switching of the selected structure: change to uppercase: Ctrl + Shift + X
  • 29. Case switching of the selected structure: change to lowercase: Ctrl + Shift + y
  • 30.调出生成getter/setter/构造器等结构: alt + shift + s
  • 31. Display the attribute of the currently selected resource (project or file): Alt + ENTER
  • 32. Quick find: quickly locate to the next one by referencing the selected word: Ctrl + K
  • 33. Close the current window: Ctrl + W
  • 34. Close all windows: Ctrl + Shift + W
  • 35. Check where the specified structure has been used: Ctrl + Alt + G
  • 36. Find and replace: Ctrl + F
  • 37. Maximize the current view: Ctrl + M
  • 38. Go directly to the first place in the current line: home
  • 39. Directly locate to the end of the current line: end