Eclipse 转到 Intellij Idea 快捷键对比篇http://write.blog.csdn.net/postlist/0/all/draft

听说Intellij Idea是一歀神器,但一直习惯了Eclipse,一直没去尝试。 最近下定决心去体验一把。 重点关注是否提供开发效率。 

天下武功为“快”不破, 所以主要从快捷键,代码提示,编译速度各方面去体验一把。下面只是部份比较喜欢用的快捷键(ctrl+alt+s)后可以看到更多。

另外感觉idea优点在于提示速度和返应速度快了,这样可以提升开发效率的。

功能IDEA 快捷键Eclipse 快捷键Remark
导入类import class Alt + Enter (当highlight对象后)Ctrl+shit+o
格式化代码Ctrl+ALT_LCtrl+F
智能提示Ctrl+Space/ Ctrl+Shift+SpaceCtrl + o
智能提示及代码补充ALT+ENTER/ Ctrl+Shift+EnterCtrl +TIDEA 另外的提示
Ctrl+Q (View | Quick Documentation), Ctrl+P (View | Parameter Info), Ctrl+B (Navigate | Declaration)
代码生成getter/setter to stringalt + insert右键来使用
选中行上下移alt+shit+up/downctrl+alt + up/down
Call hierarchy Ctrl+Alt+H /Ctr+H (method level)右键来使用refrector call hierarchy 
查找打开类Ctrl+NCtrl+shit+T
查找打开文件Ctrl+R/Ctrl+Shrt+RCtrl+shit+R
上移代码Ctrl+Shit+upalt+up
下移代码Ctrl+Shit+downalt+down
复制行Ctrl +Dctrl+alt+up/down
删除行Ctrl+xctrl+d
打开项目pannelAlt+1
最后一次修改的地方Ctrl+shit+backspacectrl+q
上一次访问的文件alt + <-


网上收集的一些Intellij Idea快捷键

Ctrl-N              Class... (find by name)
Ctrl-Shift-N        File... (find by name)
Ctrl-Shift-Alt-N    Symbol... (find by name)
Ctrl-G              Line... (goto line)
Ctrl-H              Type hierarchy (hierarchy)
Ctrl-Shift-H        Method hierarchy (hierarchy)
Ctrl-Alt-H          Call hierarchy (hierarchy)
Ctrl-Q              Quick documentation
Ctrl-Alt-I          Auto-indent lines (indent)
Ctrl-Alt-L          Reformat code (line up)
Ctrl-Alt-O          Optimize imports (optimize)
Ctrl-/              Comment with line comment (//)
Ctrl-Shift-/        Comment with block comment (/*...*/)
Ctrl-W              Select word or block (word)
Ctrl-D              Copy line (duplicate line, yyp)
Ctrl-X              Cut line (dd)
Ctrl-U              Uppercase/lowercase (upper)
Ctrl-J              Insert live template
Ctrl-Alt-J          Surround with live template
Ctrl-Alt-T          Surround with (template)
Ctrl-Shift-J        Join lines (join)
Ctrl-E              Recent files (editions)
Ctrl-Shift-E        Recently changed files (editions)
Alt-Shift-C         Recent changes (changes)
Ctrl-B              Delcaration
Ctrl-Shift-B        Type declaration
Ctrl-Alt-B          Implementation(s)
Ctrl-P              Parameter info (parameter)
Ctrl-Space          Basic completion
Ctrl-Shift-Space    Smart completion
Ctrl-Alt-Space      Completion lookup
Alt-Enter           Auto-complete
Alt-Insert          Generate...
Ctrl-Shift-Up/Down  Move statement up/down
Alt-Shift-Up/Down   Move line up/down
Ctrl-Up/Down        Scroll up/down
Alt-Up/Down         Previous/next method
F2                  Next highlighted error
Shift-F2            Previous highlighted error
Ctrl-F              Find
Ctrl-R              Replace
F3                  Next match
Shift-F3            Previous match
F4                  Jump to source
Ctrl-Alt-Shift-T    Refactor this
F5                  Refactor copy
F6                  Refactor move
Ctrl-F6             Refactor change signature
Shift-F6            Refactor rename
Alt-Delete          Refactor safe delete
Ctrl-Alt-V          Refactor extract variable
Ctrl-Alt-F          Refactor extract field
Ctrl-Alt-P          Refactor extract parameter
Ctrl-Alt-M          Refactor extract method

Ctrl-Alt-N          Refactor inline

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值