Eclipse 常用快捷键——IDEA 常用快捷键

Eclipse 常用快捷键

  1. 熟练
  • 单选注释 ctrl + /
  • 多行注释 ctrl + shift + /
  • 向下复制一行 (Duplicate Lines) ctrl+alt+down
  • 删除一行或选中行 (delete line) ctrl+d
  • 向下移动行(move statement down) alt+down
  • 向上移动行(move statement up) alt+up
  • 查找/替换(当前) ctrl+f
  • 查找(全局) ctrl+h
  • 查找文件 double Shift
  • 向下开始新的一行(start new line) shift+enter
  • 退回到前一个编辑的页面 (back) alt + left
  • 进入到下一个编辑的页面(针对于上面那条来说的) (forward) alt + right
  • 格式化代码(reformat code) ctrl+shift+F
  • 选中数行,整体往后移动 tab
  • 选中数行,整体往前移动 shift + tab
  • 如何查看源码 (class) ctrl + 选中指定的结构

  1. 不熟练
  • 打开资源(只限于自己编写的) ctrl+shift+r

  • 打开类型(包括引入的jar) ctrl+shift+t

  • 生成返回值变量 alt +shift + l

  • 生成构造/get/set/toString alt +shift + s

  • 生成 try-catch 等(surround with) alt+shift+z

  • 查看类的结构:类似于 eclipse 的 outline ctrl+o

  • 查看类继承关系(type hierarchy) F4

  • 查看文档说明(quick documentation) F2


IDEA 常用快捷键

  1. 使用 IDEA 自己的
  • 大写转化(toggle case) ctr+shift+u

猜你喜欢

转载自www.cnblogs.com/gzhcsu/p/11009066.html